public bool HasNearObstacle(int dcx, int dcy) { FieldCellSlot slot = GetNearSlot(dcx, dcy); return(slot == null || slot.ContainsObstacle()); }
public bool ContainsNoObstacle(int cx, int cy) { FieldCellSlot slot = GetSlot(cx, cy); return(slot != null && !slot.ContainsObstacle()); }
public bool HasNearObstacle(Direction dir) { FieldCellSlot slot = GetNearSlot(dir); return(slot == null || slot.ContainsObstacle()); }