예제 #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);
        }