コード例 #1
0
ファイル: Zebra.cs プロジェクト: rosendanew/ProCP
 /// <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();
 }
コード例 #2
0
ファイル: LeftZebra.cs プロジェクト: rosendanew/ProCP
 /// <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)
 {
 }