/// <summary> /// Updates a single base class insect object. Recharging boolean is set to true, to signify that the object was updated during current time step. /// </summary> /// <param name="bug"></param> internal void UpdateInsect(Insect bug) { if (!bug.Recharging) { bug.Move(); bug.Breed(); bug.Recharging = true; } }
/// <summary> /// Takes in insect parameter and sets the recharging variable to false. /// </summary> /// <param name="bug"></param> internal void Recharge(Insect bug) { bug.Recharging = false; }