public string getString() { string r = ""; for (int i = 0; i < depth; i++) { r += "\t"; } r += "isEngine:" + isEngine + ", relativeRotation:" + relativeRotation + ", ParentNode:" + parentPos.ToString() + ", startEngageAngle:" + startEngageAngle + ", rangeEngageAngle" + rangeEngageAngle + "\n"; if (parentPos != ChildNode.TOP && top != null) { r += top.getString(); } if (parentPos != ChildNode.BOTTOM && bottom != null) { r += bottom.getString(); } if (parentPos != ChildNode.LEFT && left != null) { r += left.getString(); } if (parentPos != ChildNode.RIGHT && right != null) { r += right.getString(); } return(r); }