X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=rogue_chat.py;h=aebeffbf7c2186da680734d099e31c7f2b0018b3;hb=46108644f062458df5b0540f806abffab650683f;hp=026fcdf2be073689378385fb7d3d2aba7ef643d5;hpb=540aec0e9bf55d0452cffda4b34e1995d3724abf;p=plomrogue2
diff --git a/rogue_chat.py b/rogue_chat.py
index 026fcdf..aebeffb 100755
--- a/rogue_chat.py
+++ b/rogue_chat.py
@@ -2,9 +2,10 @@
from plomrogue.game import Game
from plomrogue.io_websocket import PlomWebSocketServer
from plomrogue.io_tcp import PlomTCPServer
-from plomrogue.commands import (cmd_ALL, cmd_LOGIN, cmd_QUERY, cmd_PING, cmd_MAP,
- cmd_TURN, cmd_MAP_LINE, cmd_GET_ANNOTATION,
- cmd_ANNOTATE, cmd_PORTAL, cmd_GET_GAMESTATE)
+from plomrogue.commands import (cmd_ALL, cmd_LOGIN, cmd_NICK, cmd_QUERY, cmd_PING,
+ cmd_MAP, cmd_TURN, cmd_MAP_LINE, cmd_GET_ANNOTATION,
+ cmd_ANNOTATE, cmd_PORTAL, cmd_GET_GAMESTATE,
+ cmd_TASKS, cmd_MAP_CONTROL_LINE, cmd_MAP_CONTROL_PW)
from plomrogue.tasks import (Task_WAIT, Task_MOVE, Task_WRITE,
Task_FLATTEN_SURROUNDINGS)
import sys
@@ -16,14 +17,18 @@ savefile = sys.argv[1]
game = Game(savefile)
game.register_command(cmd_PING)
game.register_command(cmd_LOGIN)
+game.register_command(cmd_NICK)
game.register_command(cmd_QUERY)
game.register_command(cmd_TURN)
game.register_command(cmd_MAP)
game.register_command(cmd_MAP_LINE)
+game.register_command(cmd_MAP_CONTROL_LINE)
+game.register_command(cmd_MAP_CONTROL_PW)
game.register_command(cmd_GET_ANNOTATION)
game.register_command(cmd_ANNOTATE)
game.register_command(cmd_PORTAL)
game.register_command(cmd_GET_GAMESTATE)
+game.register_command(cmd_TASKS)
game.register_task(Task_WAIT)
game.register_task(Task_MOVE)
game.register_task(Task_WRITE)