Mercurial > touhou
comparison pytouhou/game/enemy.pxd @ 509:292fea5c584e
Some more type optimisations.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 25 Nov 2013 19:12:56 +0100 |
parents | 3da7395f39e3 |
children | bcff39c920ab |
comparison
equal
deleted
inserted
replaced
508:1bc014f9d572 | 509:292fea5c584e |
---|---|
26 cdef double[2] hitbox_half_size | 26 cdef double[2] hitbox_half_size |
27 | 27 |
28 cpdef play_sound(self, index) | 28 cpdef play_sound(self, index) |
29 cpdef set_hitbox(self, double width, double height) | 29 cpdef set_hitbox(self, double width, double height) |
30 cpdef set_bullet_attributes(self, type_, anim, sprite_idx_offset, | 30 cpdef set_bullet_attributes(self, type_, anim, sprite_idx_offset, |
31 bullets_per_shot, number_of_shots, speed, speed2, | 31 unsigned long bullets_per_shot, |
32 launch_angle, angle, flags) | 32 unsigned long number_of_shots, double speed, |
33 double speed2, launch_angle, angle, flags) | |
33 cpdef set_bullet_launch_interval(self, long value, unsigned long start=*) | 34 cpdef set_bullet_launch_interval(self, long value, unsigned long start=*) |
34 cpdef fire(self, offset=*, bullet_attributes=*, launch_pos=*) | 35 cpdef fire(self, offset=*, bullet_attributes=*, tuple launch_pos=*) |
35 cpdef new_laser(self, variant, laser_type, sprite_idx_offset, angle, speed, | 36 cpdef new_laser(self, unsigned long variant, laser_type, sprite_idx_offset, |
36 start_offset, end_offset, max_length, width, | 37 double angle, speed, start_offset, end_offset, max_length, |
37 start_duration, duration, end_duration, | 38 width, start_duration, duration, end_duration, |
38 grazing_delay, grazing_extra_duration, unknown, | 39 grazing_delay, grazing_extra_duration, unknown, |
39 offset=*) | 40 tuple offset=*) |
40 cpdef Player select_player(self, list players=*) | 41 cpdef Player select_player(self, list players=*) |
41 cpdef double get_player_angle(self, tuple pos=*, Player player=*) except 42 | 42 cpdef double get_player_angle(self, tuple pos=*, Player player=*) except 42 |
42 cpdef set_anim(self, index) | 43 cpdef set_anim(self, index) |
43 cdef void die_anim(self) except * | 44 cdef void die_anim(self) except * |
44 cdef void drop_particles(self, long number, long color) except * | 45 cdef void drop_particles(self, long number, long color) except * |
45 cpdef set_aux_anm(self, long number, long index) | 46 cpdef set_aux_anm(self, long number, long index) |
46 cpdef set_pos(self, x, y, z) | 47 cpdef set_pos(self, double x, double y, double z) |
47 cpdef move_to(self, duration, x, y, z, formula) | 48 cpdef move_to(self, unsigned long duration, double x, double y, double z, formula) |
48 cpdef stop_in(self, duration, formula) | 49 cpdef stop_in(self, unsigned long duration, formula) |
49 cdef bint is_visible(self, long screen_width, long screen_height) except? False | 50 cdef bint is_visible(self, long screen_width, long screen_height) except? False |
50 cdef void check_collisions(self) except * | 51 cdef void check_collisions(self) except * |
51 cdef void handle_callbacks(self) except * | 52 cdef void handle_callbacks(self) except * |
52 cdef void update(self) except * | 53 cdef void update(self) except * |