def __str__(self): s = '--- Line ---' + os.linesep s += Entity.__str__(self) + os.linesep s += "From point {0}, {1}, {2} {3}".format(self.x1, self.y1, self.z1, os.linesep) s += "To point {0}, {1}, {2}".format(self.x2, self.y2, self.z2) return s
def __str__(self): s = '--- Rational B-Spline Curve ---' + os.linesep s += Entity.__str__(self) + os.linesep s += str(self.T) + os.linesep s += str(self.W) + os.linesep s += str(self.control_points) + os.linesep s += "Parameter: v(0) = {0} v(1) = {1}".format(self.V0, self.V1) + os.linesep if self.planar_curve: s += "Unit normal: {0} {1} {2}".format(self.XNORM, self.YNORM, self.ZNORM) return s
def __str__(self): s = '--- Rational B-Spline Curve ---' + os.linesep s += Entity.__str__(self) + os.linesep s += str(self.T) + os.linesep s += str(self.W) + os.linesep s += str(self.control_points) + os.linesep s += "Parameter: v(0) = {0} v(1) = {1}".format(self.V0, self.V1) + os.linesep if self.planar_curve: s += "Unit normal: {0} {1} {2}".format(self.XNORM, self.YNORM, self.ZNORM) return s
def __str__(self): s = '--- General Note ---' + os.linesep s += Entity.__str__(self) + os.linesep s += '-- Parameter Data --' + os.linesep s += str(self.NS) + os.linesep for ts in self.text_strings: s += str(ts) + os.linesep # s += str(self.T) + os.linesep # s += str(self.W) + os.linesep # s += str(self.control_points) + os.linesep # s += "Parameter: v(0) = {0} v(1) = {1}".format(self.V0, self.V1) + os.linesep #if self.planar_curve: # s += "Unit normal: {0} {1} {2}".format(self.XNORM, self.YNORM, self.ZNORM) return s
def __str__(self): s = '--- Line ---' + os.linesep s += Entity.__str__(self) + os.linesep s += "From point {0}, {1}, {2} {3}".format(self.x1, self.y1, self.z1, os.linesep) s += "To point {0}, {1}, {2}".format(self.x2, self.y2, self.z2) return s
def __str__(self): s = "Player Information:\n" s += Entity.__str__(self) s += "%s %s\n"%(col("Next Action"), Action.toStr(self.nextAction)) s += "%s %i\n"%(col("Moves"), self.moves) return s
def __str__(self): s = "Monster Information:\n" s += Entity.__str__(self) s += "%s %s\n" % (col("Type"), self.type) return s
def __str__(self): s = "Trigger Information:\n" s += Entity.__str__(self) return s