Example #1
0
  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", "", "", "", "", "", "");
  }
Example #2
0
 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;
   }
 }
Example #3
0
 public void getMenuUpdates(
     String menu1,
     String menu2,
     String menu3,
     String menu4,
     String menu5,
     String menu6,
     String menu7,
     String menu8) {
   pv.updateMenu(menu1, menu2, menu3, menu4, menu5, menu6, menu7, menu8);
 }
Example #4
0
 public void getTitleUpdate(String title) {
   pv.updateTitle(title);
 }