Beispiel #1
0
 def hook(dct):
     res = RobotMotorise.hook(dct)
     if res is not None:
         return res
     elif dct["__class__"] == RobotTarget.__name__:
         return RobotTarget(dct["forme"], dct["rg"], dct["rd"],
                            dct["direction"], dct["tete"], dct["balise"])
Beispiel #2
0
 def hook(dct):
     res = RobotMotorise.hook(dct)
     if res is not None:
         return res
     elif dct["__class__"] == RobotTarget.__name__:
         return RobotTarget.hook(dct)
     elif dct["__class__"] == Strategie.__name__:
         return Strategie(dct["robot"])