diff pytouhou/game/effect.pyx @ 447:78e1c3864e73

Make pytouhou.game.game an extension type.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Aug 2013 06:29:53 +0200
parents cae83b963695
children 292fea5c584e
line wrap: on
line diff
--- a/pytouhou/game/effect.pyx
+++ b/pytouhou/game/effect.pyx
@@ -15,6 +15,8 @@
 from pytouhou.game.sprite cimport Sprite
 from pytouhou.vm.anmrunner import ANMRunner
 
+from pytouhou.game.game cimport Game
+
 
 cdef class Effect(Element):
     def __init__(self, pos, index, anm):
@@ -35,7 +37,7 @@ cdef class Effect(Element):
 
 
 cdef class Particle(Effect):
-    def __init__(self, pos, index, anm, long amp, game, bint reverse=False, long duration=24):
+    def __init__(self, pos, index, anm, long amp, Game game, bint reverse=False, long duration=24):
         Effect.__init__(self, pos, index, anm)
 
         self.frame = 0