public CapitalFighterMapSet(JComponent c) { comp = c; setAreas(); setLabels(); setBackGround(); translateAreas(); setContent(); }
public void setEntity(Entity e) { Aero t = (Aero) e; int armor = t.getCapArmor(); int armorO = t.getCap0Armor(); armorVLabel.setValue(Integer.toString(armor)); if (t.getGame().getOptions().booleanOption(OptionsConstants.ADVAERORULES_AERO_SANITY)) { armor = (int) Math.ceil(armor / 10.0); armorO = (int) Math.ceil(armorO / 10.0); } drawArmorImage(armorImage, armor, armorO); drawCrits(avCritImage, t.getAvionicsHits()); drawCrits(engineCritImage, t.getEngineHits()); drawCrits(fcsCritImage, t.getFCSHits()); drawCrits(sensorCritImage, t.getSensorHits()); drawCrits(pilotCritImage, t.getCrew().getHits()); }
@Override public void addNotify() { super.addNotify(); tank = new TankMapSet(this, unitDisplay); mech = new MechMapSet(this, unitDisplay); infantry = new InfantryMapSet(this); battleArmor = new BattleArmorMapSet(this); proto = new ProtomechMapSet(this, unitDisplay); vtol = new VTOLMapSet(this, unitDisplay); quad = new QuadMapSet(this, unitDisplay); tripod = new TripodMechMapSet(this, unitDisplay); gunEmplacement = new GunEmplacementMapSet(this); armless = new ArmlessMechMapSet(this, unitDisplay); largeSupportTank = new LargeSupportTankMapSet(this, unitDisplay); superHeavyTank = new SuperHeavyTankMapSet(this, unitDisplay); aero = new AeroMapSet(this, unitDisplay); capFighter = new CapitalFighterMapSet(this); sphere = new SpheroidMapSet(this, unitDisplay); jump = new JumpshipMapSet(this, unitDisplay); warship = new WarshipMapSet(this, unitDisplay); squad = new SquadronMapSet(this, game); }