Esempio n. 1
0
        public static void Dump()
        {
            GameSpriteManager pMan = GameSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.BaseDump();
        }
Esempio n. 2
0
        public static void Remove(GameSprite pNode)
        {
            GameSpriteManager pMan = GameSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            Debug.Assert(pNode != null);
            pMan.BaseRemove(pNode);
        }
Esempio n. 3
0
        public static GameSprite Find(GameSprite.Name name)
        {
            GameSpriteManager pMan = GameSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            // So:  Use the Compare Node - as a reference
            //      use in the Compare() function
            pMan.poNodeCompare.SetName(name);

            GameSprite pData = (GameSprite)pMan.BaseFind(pMan.poNodeCompare);

            return(pData);
        }
Esempio n. 4
0
        public static GameSprite Add(GameSprite.Name spriteName, Image.Name imageName, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            GameSpriteManager pMan = GameSpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            GameSprite pNode = (GameSprite)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            // Initialize the Data
            Image pImage = ImageManager.Find(imageName);

            Debug.Assert(pImage != null);

            pNode.Set(spriteName, pImage, x, y, width, height, pColor);
            return(pNode);
        }