public void Dump() { // Dump - Print contents to the debug output window // Using HASH code as its unique identifier Debug.WriteLine(" Name: ({0})", this.GetHashCode()); Debug.WriteLine(" Color(r,b,g): {0},{1},{2} ({3})", this.pColor.red, this.pColor.green, this.pColor.blue, this.pColor.GetHashCode()); Debug.WriteLine(" AzulSprite: ({0})", this.pBox.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 { BoxSprite pTmp = (BoxSprite)this.pNext; Debug.WriteLine(" next: ({0})", pTmp.GetHashCode()); } if (this.pPrev == null) { Debug.WriteLine(" prev: null"); } else { BoxSprite pTmp = (BoxSprite)this.pPrev; Debug.WriteLine(" prev: {0} ", pTmp.GetHashCode()); } }
public void DumpBoxSprite() { Debug.WriteLine("Name: {0} ({1})", this.name, this.GetHashCode()); Debug.WriteLine("X: {0}, Y:{1}, SX:{2}, SY:{3}", this.x, this.y, this.sx, this.sy); Debug.WriteLine("Red: {0}, Green: {1}, Blue:{2}", this.poLineColor.red, this.poLineColor.green, this.poLineColor.blue); if (this.pPrev == null) { Debug.WriteLine("previous: null"); } else { BoxSprite pTemp = (BoxSprite)this.pPrev; Debug.WriteLine("previous: {0}, {1}", pTemp.name, pTemp.GetHashCode()); } if (this.pNext == null) { Debug.WriteLine("next: null"); } else { BoxSprite pTemp = (BoxSprite)this.pNext; Debug.WriteLine("next: {0}, {1}", pTemp.name, pTemp.GetHashCode()); } }
public void Dump() { Debug.WriteLine(" Name: {0} ({1})", this.name, this.GetHashCode()); Debug.WriteLine(" Color(r,b,g): {0},{1},{2} ({3})", this.poLineColor.red, this.poLineColor.green, this.poLineColor.blue, this.poLineColor.GetHashCode()); Debug.WriteLine(" AzulSprite: ({0})", this.poAzulBoxSprite.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 { BoxSprite pTmp = (BoxSprite)this.pNext; Debug.WriteLine(" next: {0} ({1})", pTmp.name, pTmp.GetHashCode()); } if (this.pPrev == null) { Debug.WriteLine(" prev: null"); } else { BoxSprite pTmp = (BoxSprite)this.pPrev; Debug.WriteLine(" prev: {0} ({1})", pTmp.name, pTmp.GetHashCode()); } }
public void DumpNodeData() { this.MLinkDump(); // we are using HASH code as its unique identifier Debug.WriteLine("SpriteBox: {0}, hashcode: ({1})", this.name, this.GetHashCode()); if (this.pMNext == null) { Debug.WriteLine(" next: null"); } else { BoxSprite pTmp = (BoxSprite)this.pMNext; Debug.WriteLine(" next: {0}, hashcode: ({1})", pTmp.name, pTmp.GetHashCode()); } if (this.pMPrev == null) { Debug.WriteLine(" prev: null"); } else { BoxSprite pTmp = (BoxSprite)this.pMPrev; Debug.WriteLine(" prev: {0}, hashcode: ({1})", pTmp.name, pTmp.GetHashCode()); } // Print Unique Node Data: Debug.WriteLine(" Box Name: {0}", this.name); if (this.poLineColor == null) { Debug.WriteLine(" Color: Null or No Color"); } else { Debug.WriteLine(" Box Color: " + privPrintBoxColor(this.name)); } Debug.WriteLine(""); Debug.WriteLine("------------------------"); }