diff pytouhou/game/player.pxd @ 468:feecdb4a8928

Add “except *” to cdef void functions, and type some more.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 12 Sep 2013 15:47:08 +0200
parents 5f5955635d2c
children 887de1309491
line wrap: on
line diff
--- a/pytouhou/game/player.pxd
+++ b/pytouhou/game/player.pxd
@@ -20,8 +20,8 @@ cdef class Player(Element):
     cdef tuple speeds
     cdef long fire_time, bomb_time, direction
 
-    cdef void set_anim(self, index)
-    cpdef play_sound(self, str name)
-    cpdef collide(self)
-    cdef void fire(self)
+    cdef void set_anim(self, index) except *
+    cdef void play_sound(self, str name) except *
+    cdef void collide(self) except *
+    cdef void fire(self) except *
     cpdef update(self, long keystate)