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"])
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"])