Mercurial > touhou
comparison pytouhou/game/bullet.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 | 3bc37791f0a2 |
children | 8038f1957b71 |
comparison
equal
deleted
inserted
replaced
467:5bb7d2c0ff46 | 468:feecdb4a8928 |
---|---|
11 cdef public State state | 11 cdef public State state |
12 cdef public unsigned long flags, frame, sprite_idx_offset, damage | 12 cdef public unsigned long flags, frame, sprite_idx_offset, damage |
13 cdef public double dx, dy, angle, speed | 13 cdef public double dx, dy, angle, speed |
14 cdef public bint player_bullet, was_visible, grazed | 14 cdef public bint player_bullet, was_visible, grazed |
15 cdef public object target, _bullet_type | 15 cdef public object target, _bullet_type |
16 cdef public tuple hitbox | |
17 cdef public list attributes | 16 cdef public list attributes |
18 | 17 |
18 cdef double hitbox[2] | |
19 cdef Interpolator speed_interpolator | 19 cdef Interpolator speed_interpolator |
20 cdef Game _game | 20 cdef Game _game |
21 | 21 |
22 cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height) | 22 cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height) except? False |
23 cpdef set_anim(self, sprite_idx_offset=*) | 23 cpdef set_anim(self, sprite_idx_offset=*) |
24 cdef void launch(self) | 24 cdef void launch(self) except * |
25 cpdef collide(self) | 25 cdef void collide(self) except * |
26 cpdef cancel(self) | 26 cdef void cancel(self) except * |
27 cpdef update(self) | 27 cdef void update(self) except * |