Exemplo n.º 1
0
        public static void Dump()
        {
            BoxSpriteMan pMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.BaseDump();
        }
Exemplo n.º 2
0
        public static void PrintSpriteBoxes()
        {
            BoxSpriteMan pBSMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pBSMan != null);

            pBSMan.BaseDumpNodes();
        }
Exemplo n.º 3
0
        public static void Remove(BoxSprite pSBnode)
        {
            BoxSpriteMan pBSMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pBSMan != null);

            pBSMan.BaseRemove(pSBnode);
        }
Exemplo n.º 4
0
        private void PrivStatDump()
        {
            BoxSpriteMan pBSMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pBSMan != null);

            Debug.WriteLine("");
            Debug.WriteLine("BoxSprite Manager Stats---------------------");
            pBSMan.BaseStatDump();
        }
Exemplo n.º 5
0
        public static BoxSprite Find(BoxSprite.Name name)
        {
            BoxSpriteMan pBSMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pBSMan != null);

            pBSMan.poNodeCompare.SetName(name);

            BoxSprite pBSnode = (BoxSprite)pBSMan.BaseFind(pBSMan.poNodeCompare);

            return(pBSnode);
        }
Exemplo n.º 6
0
        public static BoxSprite Add(BoxSprite.Name name, float x, float y, float width, float height, Azul.Color pColor = null)
        {
            BoxSpriteMan pBSMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pBSMan != null);

            BoxSprite pBSnode = (BoxSprite)pBSMan.BaseAdd();

            Debug.Assert(pBSnode != null);

            pBSnode.Set(name, x, y, width, height, pColor);
            return(pBSnode);
        }
Exemplo n.º 7
0
        public static BoxSprite Find(BoxSprite.Name name)
        {
            BoxSpriteMan pMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes

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

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

            return(pData);
        }
Exemplo n.º 8
0
        public static void Destroy()
        {
            // Get the instance
            BoxSpriteMan pMan = BoxSpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("--->BoxSpriteMan.Destroy()");
#endif
            pMan.BaseDestroy();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("     {0} ({1})", pMan.poNodeCompare, pMan.poNodeCompare.GetHashCode());
            Debug.WriteLine("     {0} ({1})", BoxSpriteMan.pInstance, BoxSpriteMan.pInstance.GetHashCode());
#endif

            pMan.poNodeCompare     = null;
            BoxSpriteMan.pInstance = null;
        }