/// <summary> /// Initializes a new instance of the <see cref="Zebra"/> class. /// </summary> /// <param name="intersection">The intersection where the <see cref="Zebra"/> is.</param> /// <param name="pedestrianLight">The <see cref="PedestrianLight"/> for which the <see cref="Zebra"/> is /// assigned to.</param> protected Zebra(BaseIntersection intersection, PedestrianLight pedestrianLight) { this.Intersection = intersection; this.Position = this.HitBox.Location; this.Pedestrians = new List<Pedestrian>(); this.PedestrianLight = pedestrianLight; this.HitBox = this.CalculateHitBox(); }
/// <summary> /// Initializes a new instance of the <see cref="LeftZebra"/> class. /// </summary> /// <param name="intersection">The intersection where the <see cref="LeftZebra"/> is.</param> /// <param name="pedestrianLight">The <see cref="PedestrianLight"/> for which the <see cref="LeftZebra"/> is /// assigned to.</param> public LeftZebra(BaseIntersection intersection, PedestrianLight pedestrianLight) : base(intersection, pedestrianLight) { }