Esempio n. 1
0
 public static void Setup() {
   Cash = STARTING_CASH;
   Lives = STARTING_LIVES;
   PlayerLevel = 1;
   CurrentExp = 0;
   TowerList = new ArrayList<Tower>();
   AOEList = new CopyOnWriteArrayList<AOE>();
   UnlockTowers();
 }
Esempio n. 2
0
 public static void ModifyExp(int amount) {
   CurrentExp += amount;
   System.out.println("Gained " + amount + " experience!");
   if (PlayerLevel < MAX_LEVEL) {
     if (CurrentExp >= EXP_LIST[PlayerLevel]) {
       PlayerLevel++;
       Lives++;
       UnlockTowers();
       System.out.println("Advanced Player to Level " + PlayerLevel + "!");
     }
   }
 }