def __call__(self, params, rank):
frames = self.term(params, rank)
- horizontal = self.horizontal and (
- self.horizontal(params, rank), self.horizontal.type)
- vertical = self.vertical and (
- self.vertical(params, rank), self.vertical.type)
+ horizontal = self.horizontal and self.horizontal(params, rank)
+ vertical = self.vertical and self.vertical(params, rank)
return frames, horizontal, vertical
def __repr__(self):
elif tag == "speed":
self.speed = Speed(doc, subelem)
elif tag == "action":
- self.actions.append(ActionDef(doc, element))
+ self.actions.append(ActionDef(doc, subelem))
elif tag == "actionRef":
- self.actions.append(ActionRef(doc, element))
+ self.actions.append(ActionRef(doc, subelem))
def __call__(self, params, rank):
actions = []
for subelem in element.getchildren():
tag = realtag(subelem)
if tag == "direction":
- self.direction = Direction(doc, subelem)
+ self.direction = Direction(doc, subelem, "aim")
elif tag == "speed":
self.speed = Speed(doc, subelem)
elif tag == "bullet":