Example #1
0
        private void PlaceValuableContainers(ContainerStack containerStack)
        {
            List <Container> valuedContainers = ContainersToBeAdded.FindAll(c => c.Valuable);

            foreach (var container in valuedContainers)
            {
                if (containerStack.IsContainerAble(container, Ship.Columns))
                {
                    containerStack.AddContainerToStack(container);
                    ContainersToBeAdded.Remove(container);
                }
            }
        }
Example #2
0
        private void PlaceRegularContainers(ContainerStack containerStack)
        {
            List <Container> regularContainers = ContainersToBeAdded.FindAll(c => !c.Cooled && !c.Valuable);

            foreach (var container in regularContainers)
            {
                if (containerStack.IsContainerAble(container, Ship.Columns))
                {
                    containerStack.AddContainerToStack(container);
                    ContainersToBeAdded.Remove(container);
                }
            }
        }