BattleShip.Core.Game.ShotOnTarget C# (CSharp) Method

ShotOnTarget() private method

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