Esempio n. 1
0
        public DuplicationsDetectPolicy(StateQueue <BoxState> queue)
        {
            if (queue == null)
            {
                throw new ArgumentNullException("queue");
            }

            this.queue = queue;
        }
Esempio n. 2
0
        public KakuMovingDuplicationsDetectPolicy(Map map, StateQueue <KakuBoxState> queue)
        {
            if (map == null)
            {
                throw new ArgumentNullException("map");
            }
            if (queue == null)
            {
                throw new ArgumentNullException("queue");
            }

            this.map   = map;
            this.queue = queue;
        }
Esempio n. 3
0
        public MovingPathFinder(Map map, T start)
        {
            if (map == null)
            {
                throw new ArgumentNullException("map");
            }
            if (start.IsOverlapping)
            {
                throw new ArgumentException("start is overlapping.");
            }
            if (!start.IsMeetMap(map))
            {
                throw new ArgumentException("start does not meet the map.");
            }

            this.map   = map;
            this.start = start;

            queue = new StateQueue <T>();

            queue.Add(start);

            checker = new MovingChecker();
        }