예제 #1
0
 def __str__(self):
     s =  "%s %i\n"%(col("Unique ID"), self.ID)
     s += "%s %i, %i\n"%(col("Start"), self.startX, self.startY)
     s += "%s %i, %i\n"%(col("Location"), self.X, self.Y)
     s += "%s %s\n"%(col("Facing"), Action.toStr(self.facing))
     t = "active" if self.active else "inactive"
     s += "%s %s\n"%(col("Status"), t)
     return s
예제 #2
0
 def brief(self):
     t = "active" if self.active else "inactive"
     return "ID %i, Loc (%i, %i), %s, %s"%(
         self.ID, self.X, self.Y, Action.toStr(self.facing), t)