X-Git-Url: https://plomlompom.com/repos/day?a=blobdiff_plain;f=server_%2Fgame.py;h=eee30d9702a4814322254411546bb86b5d4b4b9d;hb=deb2d17307e58864871f2da9bd806f01bfb5fa67;hp=66ce62d605bbfda677395a560b819a1e43f4c71d;hpb=6671611f0d5416d2b4f6f54aa40a44034865376a;p=plomrogue2-experiments diff --git a/server_/game.py b/server_/game.py index 66ce62d..eee30d9 100644 --- a/server_/game.py +++ b/server_/game.py @@ -153,9 +153,9 @@ 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."""