Beispiel #1
0
        public bool HasNearObstacle(int dcx, int dcy)
        {
            FieldCellSlot slot = GetNearSlot(dcx, dcy);

            return(slot == null || slot.ContainsObstacle());
        }
Beispiel #2
0
        public bool ContainsNoObstacle(int cx, int cy)
        {
            FieldCellSlot slot = GetSlot(cx, cy);

            return(slot != null && !slot.ContainsObstacle());
        }
Beispiel #3
0
        public bool HasNearObstacle(Direction dir)
        {
            FieldCellSlot slot = GetNearSlot(dir);

            return(slot == null || slot.ContainsObstacle());
        }