Ejemplo n.º 1
0
        public override StepRes execute(PlanetCondition conditions, Colony colony)
        {
            ColonyProduction prod    = colony.getProduction();
            PlanetCondition  newCond = conditions
                                       .incOxygen(prod.oxygen)
                                       .incSurfaceN(prod.surfaceN);
            Colony newCol = colony.massGrow();

            return(new StepRes
            {
                conditions = newCond,
                colony = newCol
            });
        }