Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
467:5bb7d2c0ff46 | 468:feecdb4a8928 |
---|---|
1 from pytouhou.game.element cimport Element | 1 from pytouhou.game.element cimport Element |
2 from pytouhou.game.game cimport Game | 2 from pytouhou.game.game cimport Game |
3 from pytouhou.game.player cimport Player | |
3 from pytouhou.utils.interpolator cimport Interpolator | 4 from pytouhou.utils.interpolator cimport Interpolator |
4 | 5 |
5 cdef class Enemy(Element): | 6 cdef class Enemy(Element): |
6 cdef public double z, angle, speed, rotation_speed, acceleration | 7 cdef public double z, angle, speed, rotation_speed, acceleration |
7 cdef public long _type, bonus_dropped, die_score, frame, life, death_flags, current_laser_id, death_callback, boss_callback, low_life_callback, low_life_trigger, timeout, timeout_callback, remaining_lives, bullet_launch_interval, bullet_launch_timer, death_anim, direction, update_mode | 8 cdef public long _type, bonus_dropped, die_score, frame, life, death_flags, current_laser_id, death_callback, boss_callback, low_life_callback, low_life_trigger, timeout, timeout_callback, remaining_lives, bullet_launch_interval, bullet_launch_timer, death_anim, direction, update_mode |
25 cpdef new_laser(self, variant, laser_type, sprite_idx_offset, angle, speed, | 26 cpdef new_laser(self, variant, laser_type, sprite_idx_offset, angle, speed, |
26 start_offset, end_offset, max_length, width, | 27 start_offset, end_offset, max_length, width, |
27 start_duration, duration, end_duration, | 28 start_duration, duration, end_duration, |
28 grazing_delay, grazing_extra_duration, unknown, | 29 grazing_delay, grazing_extra_duration, unknown, |
29 offset=*) | 30 offset=*) |
30 cpdef select_player(self, players=*) | 31 cpdef Player select_player(self, list players=*) |
31 cpdef get_player_angle(self, player=*, pos=*) | 32 cpdef double get_player_angle(self, tuple pos=*, Player player=*) except 42 |
32 cpdef set_anim(self, index) | 33 cpdef set_anim(self, index) |
33 cdef void die_anim(self) | 34 cdef void die_anim(self) except * |
34 cdef void drop_particles(self, long number, long color) | 35 cdef void drop_particles(self, long number, long color) except * |
35 cpdef set_aux_anm(self, long number, long index) | 36 cpdef set_aux_anm(self, long number, long index) |
36 cpdef set_pos(self, x, y, z) | 37 cpdef set_pos(self, x, y, z) |
37 cpdef move_to(self, duration, x, y, z, formula) | 38 cpdef move_to(self, duration, x, y, z, formula) |
38 cpdef stop_in(self, duration, formula) | 39 cpdef stop_in(self, duration, formula) |
39 cdef bint is_visible(self, long screen_width, long screen_height) | 40 cdef bint is_visible(self, long screen_width, long screen_height) except? False |
40 cdef void check_collisions(self) | 41 cdef void check_collisions(self) except * |
41 cdef void handle_callbacks(self) | 42 cdef void handle_callbacks(self) except * |
42 cpdef update(self) | 43 cdef void update(self) except * |