All pastes #784067 Raw Copy code Copy link Edit

BossPlayer

public unlisted java v1 · immutable
#784067 ·published 2007-11-19 15:02 UTC
rendered paste body
public class BossPlayer extends Player{		public BossPlayer(String playerName, int power, int attackment) {		super(playerName, attackment, power);	}		public BossPlayer(String playerName) {		super(playerName);	}		public void adjPower(int adjustment) {		//System.out.println("[debug] adjustment = "+adjustment);		if (power < 0) {			this.power += adjustment/2;		} else {			this.power += adjustment*2;		}	}	}