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