All pastes #813058 Raw Edit

Someone

public text v1 · immutable
#813058 ·published 2007-12-12 06:32 UTC
rendered paste body
//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