예제 #1
0
 def __init__(self, id_, data):
     CircleObject.__init__(self, id_)
     self.data = data
     self.default_x = copy.copy(data["x"])
     self.default_y = copy.copy(data["y"])
     self.move_every = 100
     self.cur_it = self.move_every
예제 #2
0
 def __init__(self, id_, data):
     CircleObject.__init__(self,
                           id_)  # Do not forget to call super constructor
     self.regrow_time = 100
     self.cur_regrow = 0
     self.triggered = False
     self.rob = Pyroborobo.get()  # Get pyroborobo singleton
예제 #3
0
 def __init__(self, id, data):
     CircleObject.__init__(self, id)  # Do not forget to call super constructor
     self.regrow_time = data['regrowTimeMax']
     self.cur_regrow = 0
     self.triggered = False
     self.gate_id = data['sendMessageTo']
     self.rob = Pyroborobo.get()  # Get pyroborobo singleton
예제 #4
0
 def __init__(self, id_: int, data: dict):
     CircleObject.__init__(self, id_)
     self.rob = Pyroborobo.get()
     print(data)
     self.message = data.get("sendMessageTo", 0)
     self.triggered = False
     self.regrow_time = 0
     self.regrow_time_max = data['regrowTimeMax']