Пример #1
0
        // Gets the AI to attack.
        // Checks the attack result once the attack is complete.
        private static void AIAttack()
        {
            AttackResult result;

            result = _theGame.Player.Attack();
            GameController.CheckAttackResult(result);
        }
Пример #2
0
        // Gets the player to attack the indicated row and column.
        public static void Attack(int row, int col)
        {
            AttackResult result;

            result = _theGame.Shoot(row, col);
            GameController.CheckAttackResult(result);
        }