// '' <summary> // '' Gets the AI to attack. // '' </summary> // '' <remarks> // '' Checks the attack result once the attack is complete. // '' </remarks> private static void AIAttack() { AttackResult result; result = _theGame.Player.Attack(); GameController.CheckAttackResult(result); }
// '' <summary> // '' Gets the player to attack the indicated row and column. // '' </summary> // '' <param name="row">the row to attack</param> // '' <param name="col">the column to attack</param> // '' <remarks> // '' Checks the attack result once the attack is complete // '' </remarks> public static void Attack(int row, int col) { AttackResult result; result = _theGame.Shoot(row, col); GameController.CheckAttackResult(result); }