X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=server_%2Fgame.py;fp=server_%2Fgame.py;h=df6a9f24a9314c41ae32ec38292ab8ece824425a;hb=70da7de2d179e893309491c1e8f31e0e868b7b42;hp=015c8cbcc67cfb76b683bb76091203ef221b96ca;hpb=9c2b6ad3844b6b0f168aa9b553d3d0b7a9d6036e;p=plomrogue2-experiments
diff --git a/server_/game.py b/server_/game.py
index 015c8cb..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,7 +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)))
- self.io.send('VISIBLE_MAP_COMPLETE')
+ 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.
@@ -272,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):