public void Add(Explosion e) { Debug.Assert(e != null, "item is null."); ExplosionList.Add(e); EntityList.Add(e); GravityPointList.Add(e); }
public void Add(BlackHole item) { Debug.Assert(item != null, "item is null."); BlackHoleList.Add(item); EntityList.Add(item); GravityPointList.Add(item); }
public void Add(Planet item) { Debug.Assert(item != null, "item is null."); /* * Color[] colorData = new Color[item.SourceRect.Width * item.SourceRect.Height]; * item.Spritesheet.GetData<Color>(0, item.SourceRect, colorData, 0, colorData.Length); * Terrain.AddToTerrain((int)item.Position.X, (int)item.Position.Y, (int)item.Size.X, (int)item.Size.Y, false, true, true, colorData); */ PlanetList.Add(item); EntityList.Add(item); GravityPointList.Add(item); }