def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.task = Task(self, 'wait')
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.task = Task(self, 'wait')
def task_move(self, direction):
move_pos(direction, self.position)
def task_move(self, direction):
move_pos(direction, self.position)
Decrements .task.todo; if it thus falls to <= 0, enacts method whose
name is 'task_' + self.task.name and sets .task = None. If is_AI, calls
.decide_task to decide a self.task.
Decrements .task.todo; if it thus falls to <= 0, enacts method whose
name is 'task_' + self.task.name and sets .task = None. If is_AI, calls
.decide_task to decide a self.task.