diff pytouhou/game/enemy.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 3bc37791f0a2
line wrap: on
line diff
--- a/pytouhou/game/enemy.pyx
+++ b/pytouhou/game/enemy.pyx
@@ -22,7 +22,7 @@ from pytouhou.game.effect cimport Effect
 
 
 cdef class Enemy(Element):
-    def __init__(self, pos, long life, long _type, long bonus_dropped, long die_score, anms, game):
+    def __init__(self, pos, long life, long _type, long bonus_dropped, long die_score, anms, Game game):
         Element.__init__(self)
 
         self._game = game
@@ -272,7 +272,7 @@ cdef class Enemy(Element):
                                                formula)
 
 
-    cpdef bint is_visible(self, long screen_width, long screen_height):
+    cdef bint is_visible(self, long screen_width, long screen_height):
         cdef double tw, th
 
         if self.sprite is not None: