Example #1
0
        protected override void derivedPrint(DLink pLink)
        {
            Debug.Assert(pLink != null);
            SpriteNode pSpriteNode = (SpriteNode)pLink;

            Debug.WriteLine("Sprite-obj-ref : ({0})", pSpriteNode.GetHashCode());
        }
Example #2
0
        public void Dump()
        {
            // Dump - Print contents to the debug output window
            //        Using HASH code as its unique identifier
            Debug.WriteLine("   Name: {0} ({1})", this.pSpriteBase.GetName(), this.GetHashCode());

            if (this.pNext == null)
            {
                Debug.WriteLine("              next: null");
            }
            else
            {
                SpriteNode pTmp = (SpriteNode)this.pNext;
                Debug.WriteLine("              next: {0} ({1})", pTmp.pSpriteBase.GetName(), pTmp.GetHashCode());
            }

            if (this.pPrev == null)
            {
                Debug.WriteLine("              prev: null");
            }
            else
            {
                SpriteNode pTmp = (SpriteNode)this.pPrev;
                Debug.WriteLine("              prev: {0} ({1})", pTmp.pSpriteBase.GetName(), pTmp.GetHashCode());
            }
        }