/** @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(); }
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(); }