private countOrganism ( OrganismState state, PopulationChangeReason reason ) : void | ||
state | OrganismState | The state of the creature. |
reason | PopulationChangeReason | The reason the creature is being added. |
return | void |
private void countOrganism(OrganismState state, PopulationChangeReason reason)
{
Debug.Assert(state != null);
_populationData.CountOrganism(((Species) state.Species).Name, reason);
if (state is AnimalState)
{
_animalCount++;
}
else
{
_plantCount++;
}
}