X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.js?a=blobdiff_plain;f=server_%2Fgame.py;h=af6c97030c1096395f742e71daae002ae5987186;hb=59cd3d03e10e86125daed00e8d1b5576575ead1c;hp=66ce62d605bbfda677395a560b819a1e43f4c71d;hpb=54019ea9f12da4e51a25d52f5f89a1668967363d;p=plomrogue2-experiments diff --git a/server_/game.py b/server_/game.py index 66ce62d..af6c970 100644 --- a/server_/game.py +++ b/server_/game.py @@ -153,16 +153,16 @@ class Commander(): self.world.get_player().set_task('wait') self.proceed() - def cmd_GET_TURN(self, connection_id): - """Send world.turn to caller.""" - self.send_to(connection_id, str(self.world.turn)) + def cmd_GET_GAMESTATE(self, connection_id): + """Send game state jto caller.""" + self.send_gamestate(connection_id) def cmd_ECHO(self, msg, connection_id): """Send msg to caller.""" - self.send_to(connection_id, msg) + self.send(msg, connection_id) cmd_ECHO.argtypes = 'string' def cmd_ALL(self, msg, connection_id): """Send msg to all clients.""" - self.send_all(msg) + self.send(msg) cmd_ALL.argtypes = 'string'