public void Fire() { BattleTank player = currentGame.CurrentPlayerTank(); player.Fire(); controlPanel.Enabled = false; }
/// <summary> /// This method is called both externally (by the computer player when it wants to fire) and by the /// 'Fire!' button when it is clicked. /// </summary> public void Fire() { BattleTank bTank = currentGame.GetCurrentPlayerTank(); bTank.Fire(); controlPanel.Enabled = false; timer1.Enabled = true; }