public override float getDivRate(Colony colony) { if (colony.getNum() == 0) { return(0); } return((float)(colony.getMass() / colony.getNum() / colony.getCellSize())); }
public override float getDivRate(Colony colony) { float ratio = (float)(colony.getMass() / colony.getNum() * 1.5); if (ratio >= 2) { return(2.0f); } else { return(ratio); } }