public PlayerTank(TankController player, int tankX, int tankY, Game game) { this.tankX = tankX; this.tankY = tankY; this.game = game; this.tankController = player; angle = 0; power = 25; weapon = 0; tank = tankController.CreateTank(); health = tank.GetArmour(); tankBmp = tank.CreateTankBitmap(tankController.PlayerColour(), angle); }
public PlayerTank(TankController player, int tankX, int tankY, GameController game) { // Initialising the player, tank coordinates, and tankGame fields tankPlayer = player; tankXPos = tankX; tankYPos = tankY; tankGame = game; tank = player.CreateTank(); currentDurability = tank.GetHealth(); tankAngle = 0; tankPower = 25; currentWeap = 0; tankBMP = tank.CreateTankBMP(tankPlayer.GetTankColour(), tankAngle); }
public Tank CreateTank() { return(tankController.CreateTank()); }