Exemplo n.º 1
0
        public static void Remove(BoxSprite pBoxSprite)
        {
            //ensure call Create() first
            BoxSpriteMan pMan = BoxSpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            Debug.Assert(pBoxSprite != null);
            pMan.baseRemove(pBoxSprite);
        }
Exemplo n.º 2
0
        public static void Destory()
        {
            //ensure call Create() first
            BoxSpriteMan pMan = BoxSpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            pMan.baseDestory();

            pMan.poNodeForCompare  = null;
            BoxSpriteMan.pInstance = null;
        }
Exemplo n.º 3
0
        public static BoxSprite Find(BoxSprite.Name name)
        {
            //ensure call Create() first
            BoxSpriteMan pMan = BoxSpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            pMan.poNodeForCompare.setName(name);
            BoxSprite pData = (BoxSprite)pMan.baseFind(pMan.poNodeForCompare);

            return(pData);
        }
Exemplo n.º 4
0
        public static BoxSprite Add(BoxSprite.Name name, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            //ensure call Create() first
            BoxSpriteMan pMan = BoxSpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pBoxSprite = (BoxSprite)pMan.baseAdd();

            Debug.Assert(pBoxSprite != null);

            pBoxSprite.set(name, x, y, width, height, pColor);

            return(pBoxSprite);
        }
Exemplo n.º 5
0
        public static void Reset()
        {
            //ensure call Create() first
            BoxSpriteMan pMan = BoxSpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            BoxSprite pBoxSprite = (BoxSprite)pMan.pActive;

            while (pBoxSprite != null)
            {
                pBoxSprite.deepClear();
                pBoxSprite = (BoxSprite)pBoxSprite.pNext;
            }

            pMan.baseSetActiveHead(null);
        }