public bool SpotAvailable(int layer, Container.ContainerType type) { if (!ValuableClosedIn(layer, type)) { return(true); } return(false); }
private bool ValuableClosedIn(int layer, Container.ContainerType type) { if ((type == Container.ContainerType.Valuable || type == Container.ContainerType.ValuableCooled) && ClosedInSelf(layer)) { return(true); } if (!ValuableToFrontClosedIn(layer) && !ValuableToRearClosedIn(layer)) { return(false); } return(true); }