public void Add(Projectile item) { Debug.Assert(item != null, "item is null."); ProjectileList.Add(item); EntityList.Add(item); PhysicalObjectList.Add(item); }
public void Add(BloodParticle item) { Debug.Assert(item != null, "item is null."); BloodParticleList.Add(item); EntityList.Add(item); PhysicalObjectList.Add(item); }
/* 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); } }