Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 // creates the place that can heal
 private void createHealingCenter() {
   healingCenter = new HealingCenter();
   playingField.add(healingCenter);
   playingField.repaint();
 }