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