X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=rogue_chat.py;h=948f698c5949a3b87eea501dad06aecd82e8d09b;hb=ddeb515b38d9265dd68631895172b00b79d8f629;hp=026fcdf2be073689378385fb7d3d2aba7ef643d5;hpb=540aec0e9bf55d0452cffda4b34e1995d3724abf;p=plomrogue2 diff --git a/rogue_chat.py b/rogue_chat.py index 026fcdf..948f698 100755 --- a/rogue_chat.py +++ b/rogue_chat.py @@ -2,9 +2,11 @@ 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, + cmd_GOD_ANNOTATE, cmd_GOD_PORTAL) from plomrogue.tasks import (Task_WAIT, Task_MOVE, Task_WRITE, Task_FLATTEN_SURROUNDINGS) import sys @@ -15,15 +17,22 @@ if len(sys.argv) != 2: savefile = sys.argv[1] game = Game(savefile) game.register_command(cmd_PING) +game.register_command(cmd_ALL) 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_GOD_ANNOTATE) +game.register_command(cmd_GOD_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)