public void removeSquad(Entity squad, int index) { SquadCommandCard card = (SquadCommandCard) cardSlots.get(index).getCard(); card.setSquad(null); card.setSelected(false); }
public void updateFormationPattern(int index, FormationPatternType pattern) { SquadCommandCard card = (SquadCommandCard) cardSlots.get(index).getCard(); card.updateFormationPattern(pattern); }
public Entity setSelected(int index, boolean selected) { SquadCommandCard card = (SquadCommandCard) cardSlots.get(index).getCard(); card.setSelected(selected); return card.getSquad(); }