@Override public void updateGeneratedUnits(List<MechSummary> list) { currentCard().setGeneratedUnits(list); } }
@Override public String getStringVal(String key) { switch(key) { case "formationType": return currentCard().getFormation(); } return null; }
@Override public Integer getIntegerVal(String key) { switch(key) { case "numOtherUnits": return currentCard().numOtherUnits(); case "otherUnitType": return currentCard().getOtherUnitType(); case "network": return currentCard().getNetwork(); } return null; }
public void optionsChanged() { if (getUnitType() != null) { ((CardLayout)getLayout()).show(this, getUnitType() < UnitType.CONV_FIGHTER? "Ground" : "Air"); } currentCard().updateUnitType(getUnitType()); }
@Override public Boolean getBooleanVal(String key) { switch(key) { case "mechBA": return currentCard().mechBA(); case "airLance": return currentCard().airLance(); } return null; }