Example #1
0
 public override float getDivRate(Colony colony)
 {
     if (colony.getNum() == 0)
     {
         return(0);
     }
     return((float)(colony.getMass() / colony.getNum() / colony.getCellSize()));
 }
Example #2
0
        public override double getPlanetN(PlanetCondition contitions, Colony colony, double requiredN)
        {
            float coe = 0.3f + getPlanetCoe(colony.getMass());

            if (coe > 1)
            {
                coe = 1;
            }
            return(requiredN * coe);
        }
Example #3
0
        public override float getDivRate(Colony colony)
        {
            float ratio = (float)(colony.getMass() / colony.getNum() * 1.5);

            if (ratio >= 2)
            {
                return(2.0f);
            }
            else
            {
                return(ratio);
            }
        }
Example #4
0
 private double GetTotalMass(model.Colony colonyInfo)
 {
     return(colonyInfo.getMass());
 }
Example #5
0
 public override double getRequiredCO(Colony colony, int time)
 {
     return(colony.getPhotosynthesisPower() * colony.getMass() * time);
 }
Example #6
0
 public override double getPlanetWater(PlanetCondition conditions, Colony colony, double requiredWater)
 {
     return(requiredWater * getPlanetCoe(colony.getMass()));
 }
Example #7
0
 public override double getRequiredN(Colony colony, int time)
 {
     return(colony.getNFixPower() * colony.getMass() * time);
 }
Example #8
0
        public override double getRequiredWater(Colony colony, int time)
        {
            double metabolism = getMetabolicWater(colony, time);

            return(metabolism + colony.getMass());
        }
Example #9
0
 public override double getRequiredN(Colony colony, int time)
 {
     return(colony.getMass() * 0.1 * time);
 }