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

            return(false);
        }
예제 #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);
        }