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

            Debug.Assert(pMan != null);

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

            Debug.Assert(pMan != null);

            Debug.Assert(pNode != null);
            pMan.BaseRemove(pNode);
        }
Esempio n. 3
0
        private void PrivStatDump()
        {
            ProxySpriteMan pPSMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pPSMan != null);

            Debug.WriteLine("");
            Debug.WriteLine("ProxySprite Manager Stats---------------------");
            pPSMan.BaseStatDump();
        }
Esempio n. 4
0
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteMan pMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.poNodeCompare.SetName(name);

            ProxySprite pNode = (ProxySprite)pMan.BaseFind(pMan.poNodeCompare);

            return(pNode);
        }
Esempio n. 5
0
        public static ProxySprite Add(GameSprite.Name name)
        {
            ProxySpriteMan pMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

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

            Debug.Assert(pNode != null);

            pNode.Set(name);
            return(pNode);
        }
Esempio n. 6
0
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteMan pMan = ProxySpriteMan.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.SetName(name);

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

            return(pData);
        }
Esempio n. 7
0
        public static void Destroy()
        {
            // Get the instance
            ProxySpriteMan pMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);
#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("--->GameSpriteMan.Destroy()");
#endif
            pMan.BaseDestroy();

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

            pMan.poNodeCompare       = null;
            ProxySpriteMan.pInstance = null;
        }
Esempio n. 8
0
        public static void Destroy()
        {
            ProxySpriteMan pPSMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pPSMan != null);

            pPSMan.PrivStatDump();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("ProxySpriteMan.Destroy()");
#endif
            pPSMan.BaseDestroy();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("     {0} ({1})", pPSMan.poNodeCompare, pPSMan.poNodeCompare.GetHashCode());
            Debug.WriteLine("     {0} ({1})", ProxySpriteMan.pInstance, ProxySpriteMan.pInstance.GetHashCode());
#endif
            pPSMan.poNodeCompare     = null;
            ProxySpriteMan.pInstance = null;
        }