Home Segments Index Top Previous Next

513: Mainline

The step method removes the mother from the event queue, and then reinserts that mother after she bears a daughter, because bear changes her next delivery month. The reinsertion ensures that the mother is in the proper place in the event queue after the change.