Example #1
0
        public bool SpotAvailable(int layer, Container.ContainerType type)
        {
            if (!ValuableClosedIn(layer, type))
            {
                return(true);
            }

            return(false);
        }
Example #2
0
        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);
        }