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