X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2Fimpl.py;h=98b0ef75547a6e55baea75526c30e801cec47be4;hp=fcb3aab34ea99da4e76f2c6fdee77b1fd7ded9ce;hb=ba81e7d74da58dc8dfa47949502d2a2759c84309;hpb=c1021a77feb2c7b29572f77d83f81840dd339d91 diff --git a/bulletml/impl.py b/bulletml/impl.py index fcb3aab..98b0ef7 100644 --- a/bulletml/impl.py +++ b/bulletml/impl.py @@ -308,10 +308,3 @@ class Bullet(object): self.y += self.my - math.cos(self.direction) * self.speed return created - - @classmethod - def FromDoc(cls, doc, params=(), x=0, y=0, speed=0, direction=0, - target=None, rank=0.5): - """Construct a bullet from top-level actions in a document.""" - actions = [act(params, rank) for act in doc.top] - return cls(x, y, direction, speed, target, actions, rank=rank)