public void Dump() { // Dump - Print contents to the debug output window // Using HASH code as its unique identifier Debug.WriteLine(" Name: {0} ({1})", this.name, this.GetHashCode()); Debug.WriteLine(" Image: {0} ({1})", this.pImage.name, this.pImage.GetHashCode()); Debug.WriteLine(" AzulSprite: ({0})", this.poAzulSprite.GetHashCode()); Debug.WriteLine(" (x,y): {0},{1}", this.x, this.y); Debug.WriteLine(" (sx,sy): {0},{1}", this.sx, this.sy); Debug.WriteLine(" (angle): {0}", this.angle); if (this.pNext == null) { Debug.WriteLine(" next: null"); } else { GameSprite pTmp = (GameSprite)this.pNext; Debug.WriteLine(" next: {0} ({1})", pTmp.name, pTmp.GetHashCode()); } if (this.pPrev == null) { Debug.WriteLine(" prev: null"); } else { GameSprite pTmp = (GameSprite)this.pPrev; Debug.WriteLine(" prev: {0} ({1})", pTmp.name, pTmp.GetHashCode()); } }
public void Dump() { // we are using HASH code as its unique identifier Debug.WriteLine(" {0} ({1})", this.name, this.GetHashCode()); // Prev Node if (this.pPrev == null) { Debug.WriteLine(" prev: null"); } else { GameSprite pTmp = (GameSprite)this.pPrev; Debug.WriteLine(" prev: {0} ({1})", pTmp.name, pTmp.GetHashCode()); } // Next Node if (this.pNext == null) { Debug.WriteLine(" next: null"); } else { GameSprite pTmp = (GameSprite)this.pNext; Debug.WriteLine(" next: {0} ({1})", pTmp.name, pTmp.GetHashCode()); } }
public void DumpSprite() { Debug.WriteLine("Name: {0} ({1})", this.name, this.GetHashCode()); Debug.WriteLine("X: {0}, Y:{1}, SX:{2}, SY:{3}, Angle:{4}", this.x, this.y, this.sx, this.sy, this.angle); if (this.pPrev == null) { Debug.WriteLine("previous: null"); } else { GameSprite pTemp = (GameSprite)this.pPrev; Debug.WriteLine("previous: {0}, {1}", pTemp.name, pTemp.GetHashCode()); } if (this.pNext == null) { Debug.WriteLine("next: null"); } else { GameSprite pTemp = (GameSprite)this.pNext; Debug.WriteLine("next: {0}, {1}", pTemp.name, pTemp.GetHashCode()); } }
public void DumpNodeData() { //this.MLinkDump(); // we are using HASH code as its unique identifier Debug.WriteLine("Sprite: {0}, hashcode: ({1})", this.name, this.GetHashCode()); if (this.pMNext == null) { Debug.WriteLine(" next: null"); } else { GameSprite pTmp = (GameSprite)this.pMNext; Debug.WriteLine(" next: {0}, hashcode: ({1})", pTmp.name, pTmp.GetHashCode()); } if (this.pMPrev == null) { Debug.WriteLine(" prev: null"); } else { GameSprite pTmp = (GameSprite)this.pMPrev; Debug.WriteLine(" prev: {0}, hashcode: ({1})", pTmp.name, pTmp.GetHashCode()); } // Print Unique Node Data: Debug.WriteLine(" x:{0} y:{1} sx:{2} sy:{3} angle:{4}", this.x, this.y, this.sx, this.sy, this.angle); if (this.pImage == null) { Debug.WriteLine(" Image: name: null"); } else { Debug.WriteLine(" Image: name:{0}", this.pImage.GetName()); } Debug.WriteLine(""); Debug.WriteLine("------------------------"); }