Exemple #1
0
        public static GameSprite Find(GameSprite.Name name)
        {
            //ensure call Create() first
            GameSpriteMan pMan = GameSpriteMan.GetInstance();

            Debug.Assert(pMan != null);

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

            return(pData);
        }
        public static GameSprite Find(GameSprite.Name name)
        {
            //GameSpriteMan pMan = GameSpriteMan.privGetInstance();
            GameSpriteMan pMan = GameSpriteMan.pActiveGSMan;

            Debug.Assert(pMan != null);

            pMan.poNodeCompare.name = name;

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

            return(pData);
        }
        public static GameSprite Find(GameSprite.Name name)
        {
            GameSpriteMan pMan = GameSpriteMan.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);

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

            return(pData);
        }