1 from plomrogue.errors import GameError
2 from plomrogue.mapping import YX
10 def __init__(self, thing, args=()):
19 class Task_WAIT(Task):
27 class Task_MOVE(Task):
29 argtypes = 'string:direction'
31 def get_move_target(self):
32 return self.thing.game.map_geometry.move(self.thing.position,
36 test_pos = self.get_move_target()
38 raise GameError('would move out of map')
41 self.thing.position = self.get_move_target()
45 class Task_WRITE(Task):
47 argtypes = 'string:char'
53 self.thing.game.map[self.thing.position] = self.args[0]