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