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

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

            this.map   = map;
            this.queue = queue;
        }
Ejemplo 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();
        }