Пример #1
0
        public static ProxySprite Add(GameSprite.Name name)
        {
            ProxySprite pNode = (ProxySprite)pInstance.BaseAdd();
            Debug.Assert(pNode != null);

            pNode.Set(name);
            return pNode;
        }
Пример #2
0
        public static ProxySprite Add(SpriteBaseName spriteName)
        {
            ProxySpriteManager proxySpriteMan = ProxySpriteManager.GetInstance();
            ProxySprite        proxySprite    = (ProxySprite)proxySpriteMan.BaseAdd();

            proxySprite.Set(spriteName);
            return(proxySprite);
        }
Пример #3
0
        public static ProxySprite Add(GameSprite.Name name)
        {
            Debug.Assert(pMan != null);

            ProxySprite pPoxSprite = (ProxySprite)pMan.baseAdd();

            Debug.Assert(pPoxSprite != null);

            pPoxSprite.Set(name);
            return(pPoxSprite);
        }
Пример #4
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);
        }
Пример #5
0
        //----------------------------------------------------------------------
        // Methods
        //----------------------------------------------------------------------

        public static ProxySprite Add(GameSprite.Name name)
        {
            ProxySpriteManager pMan = ProxySpriteManager.privGetInstance();

            Debug.Assert(pMan != null);
            //todo look into edge case for null game sprite name - create a null game sprite to add?
            ProxySprite pNode = (ProxySprite)pMan.baseAddToFront();

            Debug.Assert(pNode != null);

            pNode.Set(name);

            return(pNode);
        }
        public static ProxySprite Add(GameSprite.Name theName)
        {
            ProxySpriteManager pManager = ProxySpriteManager.privGetInstance();

            Debug.Assert(pManager != null);

            //grab a DLink
            ProxySprite pSprite = (ProxySprite)pManager.baseAdd();

            Debug.Assert(pSprite != null);

            //initialize
            pSprite.Set(theName);

            return(pSprite);
        }