示例#1
0
 public void Add(Projectile item)
 {
     Debug.Assert(item != null, "item is null.");
     ProjectileList.Add(item);
     EntityList.Add(item);
     PhysicalObjectList.Add(item);
 }
示例#2
0
 public void Add(BloodParticle item)
 {
     Debug.Assert(item != null, "item is null.");
     BloodParticleList.Add(item);
     EntityList.Add(item);
     PhysicalObjectList.Add(item);
 }
示例#3
0
 /* These methods add an item to all relevant lists */
 public void Add(Player item)
 {
     Debug.Assert(item != null, "item is null.");
     if (PlayerList.Count <= MaxPlayers)
     {
         item.PlayerIndex = (PlayerIndex)PlayerList.Count;
         PlayerList.Add(item);
         EntityList.Add(item);
         PhysicalObjectList.Add(item);
     }
 }