示例#1
0
        public static void Dump()
        {
            ProxySpriteMan pMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.BaseDump();
        }
示例#2
0
        public static void Remove(GameSprite pNode)
        {
            ProxySpriteMan pMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

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

            Debug.Assert(pPSMan != null);

            Debug.WriteLine("");
            Debug.WriteLine("ProxySprite Manager Stats---------------------");
            pPSMan.BaseStatDump();
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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;
        }
示例#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;
        }