Esempio n. 1
0
        public static bool CheckInRange(GenericShip thisShip, GenericShip anotherShip, int minRange, int maxRange, RangeCheckReason reason = RangeCheckReason.Other)
        {
            DistanceInfo distInfo = new DistanceInfo(thisShip, anotherShip);
            bool         inRange  = distInfo.Range >= minRange && distInfo.Range <= maxRange;

            inRange = thisShip.CallOnCheckRange(anotherShip, minRange, maxRange, reason, inRange);

            return(inRange);
        }