Пример #1
0
 /** @param args */
 public static void main(String[] args) {
   Soldier s = new Soldier();
   s.cure();
   s.wound();
   s.wound();
   s.resurrect();
   s.kill();
   s.resurrect();
   s.wound();
   s.kill();
   s.resurrect();
 }
Пример #2
0
 public void wound(Soldier soldier) {
   if (army != null) soldier.wound();
   healthy.removeValue(soldier, true);
   this.addSoldier(soldier);
   //	if (player) BottomPanel.log(soldier.name + " wounded", "orange");
   calcStats();
 }