public void changeState(States stat) { switch (stat) { case MENU: pv.updateTitle("Back to the menu..."); pv.updateMenu("Fight", "Quit", "", "", "", "", "", ""); state = States.MENU; break; case BATTLE: pv.updateTitle("A Battle Begins!"); pv.updateMenu("Okay", "", "", "", "", "", "", ""); state = States.BATTLE; break; } }
public void init() { heroes = new ArrayList<Person>(); baddies = new ArrayList<Person>(); heroes.add(new Hero(15, 15, 15, 15, 15, 15)); baddies.add(new Person(10, 10, 10, 10, 10, 10)); pv.updateTitle("Start"); pv.updateMenu("Fight", "Quit", "", "", "", "", "", ""); }
public void getTitleUpdate(String title) { pv.updateTitle(title); }