Exemple #1
0
 public void previous() {
   int length = army.getUnities().length;
   cursor--;
   if (cursor < 0) cursor = length - 1;
 }
Exemple #2
0
 public Unity getUnityFocus() {
   return army.getUnities()[cursor];
 }
Exemple #3
0
 public void next() {
   int length = army.getUnities().length;
   cursor++;
   cursor = cursor % length;
 }
Exemple #4
0
 public void setUnities(Unity[] unities) {
   army.setUnities(unities);
   modifNotif();
 }
Exemple #5
0
 public Unity[] getUnities() {
   return army.getUnities();
 }
Exemple #6
0
 public void setName(String name) {
   army.setName(name);
   modifNotif();
 }
Exemple #7
0
 public String getName() {
   return army.getName();
 }