コード例 #1
0
ファイル: World.java プロジェクト: JackGilliam1/Blockamon
 // 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();
 }
コード例 #2
0
ファイル: World.java プロジェクト: JackGilliam1/Blockamon
 // creates the place that can heal
 private void createHealingCenter() {
   healingCenter = new HealingCenter();
   playingField.add(healingCenter);
   playingField.repaint();
 }