Beispiel #1
0
 // player loses a battle and all blockamon in their party have lost all HealthPoints
 public void playerWhitedOut() {
   player.setLocation(healingCenter.getX(), healingCenter.getY());
   player.healAllBlockamon();
   player.loseMoney();
   playingField.repaint();
 }
Beispiel #2
0
 // creates the place that can heal
 private void createHealingCenter() {
   healingCenter = new HealingCenter();
   playingField.add(healingCenter);
   playingField.repaint();
 }