示例#1
0
        public void Reset()
        {
            IsValid = false;
            ShipsByOccupationPoints.Clear();

            foreach (var shipList in m_ShipsByLength.Values)
            {
                shipList.Clear();
            }
        }
示例#2
0
 private bool ShipOverlaps(Ship ship)
 {
     return(ship.Occupies.Any(p => ShipsByOccupationPoints.ContainsKey(p)));
 }