Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void AimTurret(float angle)
 {
     // Setting up the PlayerTank's current aiming angle
     tankAngle = angle;
     tankBMP   = tank.CreateTankBMP(tankPlayer.GetTankColour(), tankAngle);
 }