def __call__(self, owner, action, params, rank, created):
repeat = self.times(params, rank)
actions, params = self.action(params, rank)
- child = action.__class__(
- owner, action, actions, params, rank, repeat)
+ child = action.Child(actions, params, rank, repeat)
owner.replace(action, child)
child.step(owner, created)
return True
if branch:
actions, params = branch(params, rank)
- child = action.__class__(owner, action, actions, params, rank)
+ child = action.Child(actions, params, rank)
owner.replace(action, child)
child.step(owner, created)
return True