/// <summary> /// Draws the when normal. /// </summary> /// <param name="image">The image.</param> protected override void DrawWhenNormal(Graphics image) { if (PedestrianFlowFrom != null) { PedestrianFlowFrom.Draw(image); } if (PedestrianFlowTo != null) { PedestrianFlowTo.Draw(image); } this.Light.Draw(image); foreach (Lane lane in this.Lanes) { lane.Draw(image); } }
/// <summary> /// Updates the specified seconds. /// </summary> /// <param name="seconds">The seconds.</param> public override void Update(float seconds) { //if (!this.Owner.IntervalsSet) //{ // this.Owner.SetStartIntervals(); //} if (PedestrianFlowFrom != null) { PedestrianFlowFrom.Update(seconds); } if (PedestrianFlowTo != null) { PedestrianFlowTo.Update(seconds); } foreach (Lane lane in this.Lanes) { lane.Update(seconds); } this.Light.Update(seconds); spins++; }