X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=rogue_chat.py;h=1f40913eae7b4c11fc7baf3624470e221c72eab8;hb=7cb4148daec56f826ce7833468af597febf809e5;hp=e25eeacf5e8a9ba4f283c4edffe265d71ea80015;hpb=6cc83951670f2022bd22cbf0728ebb4c25479c4d;p=plomrogue2
diff --git a/rogue_chat.py b/rogue_chat.py
index e25eeac..1f40913 100755
--- a/rogue_chat.py
+++ b/rogue_chat.py
@@ -6,10 +6,13 @@ from plomrogue.commands import (cmd_ALL, cmd_LOGIN, cmd_NICK, cmd_PING, cmd_THIN
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, cmd_THING_TYPES)
-from plomrogue.tasks import (Task_WAIT, Task_MOVE, Task_WRITE,
- Task_FLATTEN_SURROUNDINGS)
-from plomrogue.things import Thing_Player, Thing_Stone
+ cmd_GOD_ANNOTATE, cmd_GOD_PORTAL, cmd_THING_TYPES,
+ cmd_THING_NAME, cmd_TERRAINS, cmd_ADMIN_PASSWORD,
+ cmd_BECOME_ADMIN, cmd_SET_TILE_CONTROL,
+ cmd_SET_MAP_CONTROL_PASSWORD, cmd_SPAWN_POINT)
+from plomrogue.tasks import (Task_WAIT, Task_MOVE, Task_WRITE, Task_PICK_UP,
+ Task_DROP, Task_FLATTEN_SURROUNDINGS)
+from plomrogue.things import Thing_Player, Thing_Item, Thing_Furniture
import sys
if len(sys.argv) != 2:
@@ -34,13 +37,23 @@ game.register_command(cmd_GOD_PORTAL)
game.register_command(cmd_GET_GAMESTATE)
game.register_command(cmd_TASKS)
game.register_command(cmd_THING_TYPES)
+game.register_command(cmd_TERRAINS)
game.register_command(cmd_THING)
+game.register_command(cmd_THING_NAME)
+game.register_command(cmd_ADMIN_PASSWORD)
+game.register_command(cmd_SET_TILE_CONTROL)
+game.register_command(cmd_SET_MAP_CONTROL_PASSWORD)
+game.register_command(cmd_BECOME_ADMIN)
+game.register_command(cmd_SPAWN_POINT)
game.register_task(Task_WAIT)
game.register_task(Task_MOVE)
game.register_task(Task_WRITE)
game.register_task(Task_FLATTEN_SURROUNDINGS)
+game.register_task(Task_PICK_UP)
+game.register_task(Task_DROP)
game.register_thing_type(Thing_Player)
-game.register_thing_type(Thing_Stone)
+game.register_thing_type(Thing_Item)
+game.register_thing_type(Thing_Furniture)
game.read_savefile()
game.io.start_loop()
game.io.start_server(8000, PlomWebSocketServer)