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