コード例 #1
0
        public void draw()
        {
            // get the active list
            SBNode pActiveList = (SBNode)this.baseGetActiveList();

            // walk through the list and render
            while (pActiveList != null)
            {
                Debug.Assert(pActiveList.getSpriteBase() != null);
                pActiveList.getSpriteBase().render();

                pActiveList = (SBNode)pActiveList.pNext;
            }
        }
コード例 #2
0
        public void remove(SpriteBase pNode)
        {
            Debug.Assert(pNode != null);

            SBNode pSBNode = (SBNode)this.poSBNodeMan.baseGetActiveList();

            Debug.Assert(pSBNode != null);

            while (pSBNode != null)
            {
                if (pSBNode.getSpriteBase() == pNode)
                {
                    // to do..
                    pSBNode.pNext.pPrev = pSBNode.pPrev;
                    pSBNode.pPrev.pNext = pSBNode.pNext;
                    break;
                }
                pSBNode = (SBNode)pSBNode.pNext;
            }
        }