X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=new2%2Fplomrogue%2Ftasks.py;h=fffb36a117421bdf04a9082d5e4d3d3649995ef4;hb=91641af0986a58b67730beeb0f1cf126bfac96ef;hp=01084166635e6fba149f2763ed3b7a1ac182f6a3;hpb=09a7a28a19b56662eccceb5785fd36265845c15c;p=plomrogue2-experiments
diff --git a/new2/plomrogue/tasks.py b/new2/plomrogue/tasks.py
index 0108416..fffb36a 100644
--- a/new2/plomrogue/tasks.py
+++ b/new2/plomrogue/tasks.py
@@ -25,6 +25,7 @@ class Task_WAIT(Task):
class Task_MOVE(Task):
+ todo = 1
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()
+
+
+
+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]