Mercurial > touhou
diff pytouhou/game/enemy.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 | 78e1c3864e73 |
children | 3da7395f39e3 |
line wrap: on
line diff
--- a/pytouhou/game/enemy.pxd +++ b/pytouhou/game/enemy.pxd @@ -1,5 +1,6 @@ from pytouhou.game.element cimport Element from pytouhou.game.game cimport Game +from pytouhou.game.player cimport Player from pytouhou.utils.interpolator cimport Interpolator cdef class Enemy(Element): @@ -27,16 +28,16 @@ cdef class Enemy(Element): start_duration, duration, end_duration, grazing_delay, grazing_extra_duration, unknown, offset=*) - cpdef select_player(self, players=*) - cpdef get_player_angle(self, player=*, pos=*) + cpdef Player select_player(self, list players=*) + cpdef double get_player_angle(self, tuple pos=*, Player player=*) except 42 cpdef set_anim(self, index) - cdef void die_anim(self) - cdef void drop_particles(self, long number, long color) + cdef void die_anim(self) except * + cdef void drop_particles(self, long number, long color) except * cpdef set_aux_anm(self, long number, long index) cpdef set_pos(self, x, y, z) cpdef move_to(self, duration, x, y, z, formula) cpdef stop_in(self, duration, formula) - cdef bint is_visible(self, long screen_width, long screen_height) - cdef void check_collisions(self) - cdef void handle_callbacks(self) - cpdef update(self) + cdef bint is_visible(self, long screen_width, long screen_height) except? False + cdef void check_collisions(self) except * + cdef void handle_callbacks(self) except * + cdef void update(self) except *