Mercurial > touhou
comparison pytouhou/game/enemy.pxd @ 447:78e1c3864e73
Make pytouhou.game.game an extension type.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 17 Aug 2013 06:29:53 +0200 |
parents | e8dc95a2a287 |
children | feecdb4a8928 |
comparison
equal
deleted
inserted
replaced
446:3a33ed7f3b85 | 447:78e1c3864e73 |
---|---|
1 from pytouhou.game.element cimport Element | 1 from pytouhou.game.element cimport Element |
2 from pytouhou.game.game cimport Game | |
2 from pytouhou.utils.interpolator cimport Interpolator | 3 from pytouhou.utils.interpolator cimport Interpolator |
3 | 4 |
4 cdef class Enemy(Element): | 5 cdef class Enemy(Element): |
5 cdef public double z, angle, speed, rotation_speed, acceleration | 6 cdef public double z, angle, speed, rotation_speed, acceleration |
6 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 | 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 |
7 cdef public bint visible, was_visible, touchable, collidable, damageable, boss, automatic_orientation, delay_attack | 8 cdef public bint visible, was_visible, touchable, collidable, damageable, boss, automatic_orientation, delay_attack |
8 cdef public tuple difficulty_coeffs, extended_bullet_attributes, bullet_attributes, bullet_launch_offset, movement_dependant_sprites, screen_box | 9 cdef public tuple difficulty_coeffs, extended_bullet_attributes, bullet_attributes, bullet_launch_offset, movement_dependant_sprites, screen_box |
9 cdef public dict laser_by_id | 10 cdef public dict laser_by_id |
10 cdef public list aux_anm | 11 cdef public list aux_anm |
11 cdef public Interpolator interpolator, speed_interpolator | 12 cdef public Interpolator interpolator, speed_interpolator |
12 cdef public object _game, _anms, process | 13 cdef public object _anms, process |
13 | 14 |
15 cdef Game _game | |
14 cdef double[2] hitbox_half_size | 16 cdef double[2] hitbox_half_size |
15 | 17 |
16 cpdef play_sound(self, index) | 18 cpdef play_sound(self, index) |
17 cpdef set_hitbox(self, double width, double height) | 19 cpdef set_hitbox(self, double width, double height) |
18 cpdef set_bullet_attributes(self, type_, anim, sprite_idx_offset, | 20 cpdef set_bullet_attributes(self, type_, anim, sprite_idx_offset, |
32 cdef void drop_particles(self, long number, long color) | 34 cdef void drop_particles(self, long number, long color) |
33 cpdef set_aux_anm(self, long number, long index) | 35 cpdef set_aux_anm(self, long number, long index) |
34 cpdef set_pos(self, x, y, z) | 36 cpdef set_pos(self, x, y, z) |
35 cpdef move_to(self, duration, x, y, z, formula) | 37 cpdef move_to(self, duration, x, y, z, formula) |
36 cpdef stop_in(self, duration, formula) | 38 cpdef stop_in(self, duration, formula) |
37 cpdef bint is_visible(self, long screen_width, long screen_height) | 39 cdef bint is_visible(self, long screen_width, long screen_height) |
38 cdef void check_collisions(self) | 40 cdef void check_collisions(self) |
39 cdef void handle_callbacks(self) | 41 cdef void handle_callbacks(self) |
40 cpdef update(self) | 42 cpdef update(self) |