//Java Fighters Universe v2007 //the second homework_ism001 //by LAW MEI KWAN 8048955 //2007-12-10 public class BossPlayer extends Player { //calls the constructor of its superclass to initialize the name public BossPlayer(String playerName) { super(playerName); } //updates the power of the boss player public void setPlayerPower(int PlayerPower,int Difference) { if (Difference<0) this.playerPower += (Difference/2);//subtracts half the power difference else this.playerPower += (Difference*2);//adds double the power difference } }//end class BossPlayer