public void AddObject(GameObject obj) { if (obj is Tank) { Tank newTank = obj as Tank; theTank.Destroy(); theTank = newTank; } allObjects.Add(obj); }
public void EnqueueForRendering(GameObject obj) { char [,] objBody = obj.GetAppearance(); worldMatrix[obj.topLeft.Row][obj.topLeft.Colum] = objBody[0, 0]; }