示例#1
0
        public void Fire()
        {
            BattleTank player = currentGame.CurrentPlayerTank();

            player.Fire();
            controlPanel.Enabled = false;
        }
示例#2
0
        /// <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;
        }