home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make some things block movement, and others not.
[plomrogue2]
/
rogue_chat.py
diff --git
a/rogue_chat.py
b/rogue_chat.py
index d2e41177049c8ed6371e79b3d8ec75169796d430..e25eeacf5e8a9ba4f283c4edffe265d71ea80015 100755
(executable)
--- a/
rogue_chat.py
+++ b/
rogue_chat.py
@@
-2,12
+2,14
@@
from plomrogue.game import Game
from plomrogue.io_websocket import PlomWebSocketServer
from plomrogue.io_tcp import PlomTCPServer
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_NICK, cmd_
QUERY, cmd_P
ING,
+from plomrogue.commands import (cmd_ALL, cmd_LOGIN, cmd_NICK, cmd_
PING, cmd_TH
ING,
cmd_MAP, cmd_TURN, cmd_MAP_LINE, cmd_GET_ANNOTATION,
cmd_ANNOTATE, cmd_PORTAL, cmd_GET_GAMESTATE,
cmd_MAP, cmd_TURN, cmd_MAP_LINE, cmd_GET_ANNOTATION,
cmd_ANNOTATE, cmd_PORTAL, cmd_GET_GAMESTATE,
- cmd_TASKS)
+ 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.tasks import (Task_WAIT, Task_MOVE, Task_WRITE,
Task_FLATTEN_SURROUNDINGS)
+from plomrogue.things import Thing_Player, Thing_Stone
import sys
if len(sys.argv) != 2:
import sys
if len(sys.argv) != 2:
@@
-16,21
+18,29
@@
if len(sys.argv) != 2:
savefile = sys.argv[1]
game = Game(savefile)
game.register_command(cmd_PING)
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_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_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_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_command(cmd_GET_GAMESTATE)
game.register_command(cmd_TASKS)
+game.register_command(cmd_THING_TYPES)
+game.register_command(cmd_THING)
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_WAIT)
game.register_task(Task_MOVE)
game.register_task(Task_WRITE)
game.register_task(Task_FLATTEN_SURROUNDINGS)
+game.register_thing_type(Thing_Player)
+game.register_thing_type(Thing_Stone)
game.read_savefile()
game.io.start_loop()
game.io.start_server(8000, PlomWebSocketServer)
game.read_savefile()
game.io.start_loop()
game.io.start_server(8000, PlomWebSocketServer)