X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=new2%2Fplomrogue%2Ftasks.py;h=fffb36a117421bdf04a9082d5e4d3d3649995ef4;hb=8db0e200f8c2d279c68ca01b9ae235ab63c8f642;hp=01084166635e6fba149f2763ed3b7a1ac182f6a3;hpb=428ba19a1984f385f5fc55201734a150f59dafcb;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]