self.args = args
self.todo = 3
- @property
- def name(self):
- prefix = 'Task_'
- class_name = self.__class__.__name__
- return class_name[len(prefix):]
-
def check(self):
pass
if self.thing.world.map_[test_pos] != '.':
raise GameError('%s would move into illegal terrain' % self.thing.id_)
for t in self.thing.world.things:
- if t.position == test_pos:
+ if t.blocking and t.position == test_pos:
raise GameError('%s would move into other thing' % self.thing.id_)
def do(self):