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 basic save file mechanism.
[plomrogue2-experiments]
/
new2
/
plomrogue
/
tasks.py
diff --git
a/new2/plomrogue/tasks.py
b/new2/plomrogue/tasks.py
index 01084166635e6fba149f2763ed3b7a1ac182f6a3..fffb36a117421bdf04a9082d5e4d3d3649995ef4 100644
(file)
--- a/
new2/plomrogue/tasks.py
+++ b/
new2/plomrogue/tasks.py
@@
-25,6
+25,7
@@
class Task_WAIT(Task):
class Task_MOVE(Task):
class Task_MOVE(Task):
+ todo = 1
argtypes = 'string:direction'
def get_move_target(self):
argtypes = 'string:direction'
def get_move_target(self):
@@
-38,3
+39,15
@@
class Task_MOVE(Task):
def do(self):
self.thing.position = self.get_move_target()
def do(self):
self.thing.position = self.get_move_target()
+
+
+
+class Task_WRITE(Task):
+ todo = 1
+ argtypes = 'string:char'
+
+ def check(self):
+ pass
+
+ def do(self):
+ self.thing.game.map[self.thing.position] = self.args[0]