Esempio n. 1
0
        public void AddObject(GameObject obj)
        {
            if (obj is Tank)
            {
                Tank newTank = obj as Tank;
                theTank.Destroy();
                theTank = newTank;
            }

            allObjects.Add(obj);
        }
Esempio n. 2
0
        public void EnqueueForRendering(GameObject obj)
        {
            char [,] objBody = obj.GetAppearance();

            worldMatrix[obj.topLeft.Row][obj.topLeft.Colum] = objBody[0, 0];
        }