diff pytouhou/game/laser.pyx @ 495:b32cef75df59

Drop an useless dependency on Player from Orb, on Game from Laser.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 14 Oct 2013 12:12:52 +0200
parents 2276229282fd
children db28538cd399
line wrap: on
line diff
--- a/pytouhou/game/laser.pyx
+++ b/pytouhou/game/laser.pyx
@@ -14,6 +14,7 @@
 
 from libc.math cimport cos, sin, M_PI as pi
 
+from pytouhou.game.game cimport Game
 from pytouhou.vm.anmrunner import ANMRunner
 
 
@@ -56,11 +57,10 @@ cdef class Laser(Element):
                  unsigned long grazing_extra_duration, Game game):
         Element.__init__(self, (0, 0))
 
-        self._game = game
         launch_anim = LaserLaunchAnim(self, laser_type.anm,
                                       laser_type.launch_anim_offsets[sprite_idx_offset]
                                       + laser_type.launch_sprite_idx)
-        self._game.effects.append(launch_anim)
+        game.effects.append(launch_anim)
         self._laser_type = laser_type
         self.state = STARTING