예제 #1
0
 /// <summary>
 /// Adds the provided HitObject to this Column
 /// </summary>
 /// <param name="hitObject">The HitObject to add</param>
 /// <param name="speed">Current game speed</param>
 /// <param name="crosshairZLoc">The z-axis position of the Crosshair</param>
 public void AddHitObject(HitObject hitObject, double speed, float crosshairZLoc)
 {
     // If this HitObject is hittable, add it to the end of the list.
     if (hitObject.Hittable)
     {
         HitObjects.Add(hitObject);
         UpdateHitObjects.Add(new KeyValuePair <long, HitObject>(hitObject.IsSeenAt(speed, crosshairZLoc), hitObject));
     }
     // If this HitObject is not hittable (Fading Out Effect Arcs), add it to the front of the list.
     else
     {
         HitObjects.Insert(0, hitObject);
         UpdateHitObjects.Insert(0, new KeyValuePair <long, HitObject>(hitObject.IsSeenAt(speed, crosshairZLoc), hitObject));
     }
 }