Beispiel #1
0
 def unmarshal(cls, move_dict):
     return cls(TilePosition.unmarshal(move_dict["from"]),
                TilePosition.unmarshal(move_dict["to"]),
                move_dict["rotation"])
 def unmarshal(cls, pos_dict):
     return cls(TilePosition.unmarshal(pos_dict["tile_position"]),
                SpotPositionFactory.get_by_id(pos_dict["spot_position"]))