public override float getDivRate(Colony colony) { if (colony.getNum() == 0) { return(0); } return((float)(colony.getMass() / colony.getNum() / colony.getCellSize())); }
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); }
public override float getDivRate(Colony colony) { float ratio = (float)(colony.getMass() / colony.getNum() * 1.5); if (ratio >= 2) { return(2.0f); } else { return(ratio); } }
private double GetTotalMass(model.Colony colonyInfo) { return(colonyInfo.getMass()); }
public override double getRequiredCO(Colony colony, int time) { return(colony.getPhotosynthesisPower() * colony.getMass() * time); }
public override double getPlanetWater(PlanetCondition conditions, Colony colony, double requiredWater) { return(requiredWater * getPlanetCoe(colony.getMass())); }
public override double getRequiredN(Colony colony, int time) { return(colony.getNFixPower() * colony.getMass() * time); }
public override double getRequiredWater(Colony colony, int time) { double metabolism = getMetabolicWater(colony, time); return(metabolism + colony.getMass()); }
public override double getRequiredN(Colony colony, int time) { return(colony.getMass() * 0.1 * time); }