projects
/
python-bulletml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Knock out final bugs caused by misparenting. Runs all tests as the demo applet.
[python-bulletml.git]
/
bulletml
/
parser.py
diff --git
a/bulletml/parser.py
b/bulletml/parser.py
index
8bea044
..
187fa86
100644
(file)
--- a/
bulletml/parser.py
+++ b/
bulletml/parser.py
@@
-205,9
+205,9
@@
class BulletDef(object):
elif tag == "speed":
self.speed = Speed(doc, subelem)
elif tag == "action":
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":
elif tag == "actionRef":
- self.actions.append(ActionRef(doc,
element
))
+ self.actions.append(ActionRef(doc,
subelem
))
def __call__(self, params, rank):
actions = []
def __call__(self, params, rank):
actions = []
@@
-294,7
+294,7
@@
class FireDef(object):
for subelem in element.getchildren():
tag = realtag(subelem)
if tag == "direction":
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":
elif tag == "speed":
self.speed = Speed(doc, subelem)
elif tag == "bullet":