Expose only top-level actions, not bullets or firings.
[python-bulletml.git] / bulletml / __init__.py
index addc0fe..27faaf0 100644 (file)
@@ -19,7 +19,7 @@ Basic Usage:
     doc = Bulletml.BulletML.FromDocument(open("test.xml", "rU"))
     rank = 0.5    # Player difficulty, 0 to 1
     params = []   # Initial variable settings, usually empty
     doc = Bulletml.BulletML.FromDocument(open("test.xml", "rU"))
     rank = 0.5    # Player difficulty, 0 to 1
     params = []   # Initial variable settings, usually empty
-    actions = [a(params, rank) for a in doc.top]
+    actions = [a(params, rank) for a in doc.actions]
     bullet = Bullet(x, y, target=player, actions=actions, rank=rank)
     bullets = [bullet]
     ...
     bullet = Bullet(x, y, target=player, actions=actions, rank=rank)
     bullets = [bullet]
     ...