Example #1
0
 def debug_info(self):
     if self.target:
       target_pos = self.target.pos
     else:
       target_pos = 0
     return "%s target=%s (%.1f) waypoint=%.1f" % \
            (FSMController.debug_info(self), self.target, target_pos, self.waypoint)
Example #2
0
 def debug_info(self):
     return "%s target=%s waypoint=%.3s" % \
            (FSMController.debug_info(self), self.target, self.waypoint)
Example #3
0
 def __init__(self, puppet):
     FSMController.__init__(self, puppet)
     self.target   = False
     self.shot     = False
     self.waypoint = False
Example #4
0
 def debug_info(self):
     return "%s waypoint=%3f" % (FSMController.debug_info(self), self.waypoint)
Example #5
0
 def __init__(self, *args):
     FSMController.__init__(self, *args)
     self.last_hp  = self.puppet.hp
     self.waypoint = 0.0