X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server_%2Fgame.py;h=df6a9f24a9314c41ae32ec38292ab8ece824425a;hb=70da7de2d179e893309491c1e8f31e0e868b7b42;hp=5595cea567ea2dfed0a82d35d580b7ea059ad572;hpb=70388a86c4f8fd774eb94b6deaa85bb1cb1d0aed;p=plomrogue2-experiments diff --git a/server_/game.py b/server_/game.py index 5595cea..df6a9f2 100644 --- a/server_/game.py +++ b/server_/game.py @@ -2,6 +2,7 @@ import sys sys.path.append('../') import game_common import server_.map_ +from parser import ArgError class GameError(Exception): @@ -206,6 +207,9 @@ class Game(game_common.CommonCommandsMixin): self.io.send('THING_TYPE %s %s' % (thing.id_, thing.type_)) self.io.send('THING_POS %s %s' % (thing.id_, stringify_yx(thing.position))) + player = self.world.get_player() + self.io.send('PLAYER_POS %s' % (stringify_yx(player.position))) + self.io.send('GAME_STATE_COMPLETE') def proceed(self): """Send turn finish signal, run game world, send new world data. @@ -271,7 +275,7 @@ class Game(game_common.CommonCommandsMixin): self.proceed() def cmd_GET_GAMESTATE(self, connection_id): - """Send game state jto caller.""" + """Send game state to caller.""" self.send_gamestate(connection_id) def cmd_ECHO(self, msg, connection_id):