home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add MAP command to explicitely set map size.
[plomrogue2-experiments]
/
new2
/
plomrogue
/
commands.py
diff --git
a/new2/plomrogue/commands.py
b/new2/plomrogue/commands.py
index 8175b2ecdb997f5db4c62eb585f26ec90626567a..2ca62304e38160c5d466ba8ff76b05da7ba097af 100644
(file)
--- a/
new2/plomrogue/commands.py
+++ b/
new2/plomrogue/commands.py
@@
-52,3
+52,7
@@
cmd_TURN.argtypes = 'int:nonneg'
def cmd_MAP_LINE(game, y, line):
game.map.set_line(y, line)
cmd_MAP_LINE.argtypes = 'int:nonneg string'
+
+def cmd_MAP(game, size):
+ game.new_map(size)
+cmd_MAP.argtypes = 'yx_tuple:pos'