BattleShip.Core.Game.ShotOnTarget C# (CSharp) Méthode

ShotOnTarget() private méthode

private ShotOnTarget ( Player targetPlayer, GeoCoordinate shotLocation ) : bool
targetPlayer Player
shotLocation GeoCoordinate
Résultat bool
        private bool ShotOnTarget(Player targetPlayer, GeoCoordinate shotLocation)
        {
            return GetGeoDistanceBetween(shotLocation, targetPlayer.Location) < shotBlastRadius;
        }