Mercurial > touhou
comparison pytouhou/game/laser.pxd @ 495:b32cef75df59
Drop an useless dependency on Player from Orb, on Game from Laser.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 14 Oct 2013 12:12:52 +0200 |
parents | 8038f1957b71 |
children | 53fa73932e9a |
comparison
equal
deleted
inserted
replaced
494:6be9c99a3a24 | 495:b32cef75df59 |
---|---|
1 from pytouhou.game.element cimport Element | 1 from pytouhou.game.element cimport Element |
2 from pytouhou.game.sprite cimport Sprite | 2 from pytouhou.game.sprite cimport Sprite |
3 from pytouhou.game.game cimport Game | |
4 from pytouhou.game.lasertype cimport LaserType | 3 from pytouhou.game.lasertype cimport LaserType |
5 | 4 |
6 cdef enum State: | 5 cdef enum State: |
7 STARTING, STARTED, STOPPING | 6 STARTING, STARTED, STOPPING |
8 | 7 |
19 | 18 |
20 cdef unsigned long start_duration, duration, stop_duration, grazing_delay, | 19 cdef unsigned long start_duration, duration, stop_duration, grazing_delay, |
21 cdef unsigned long grazing_extra_duration, sprite_idx_offset | 20 cdef unsigned long grazing_extra_duration, sprite_idx_offset |
22 cdef double base_pos[2], speed, start_offset, end_offset, max_length, width | 21 cdef double base_pos[2], speed, start_offset, end_offset, max_length, width |
23 cdef State state | 22 cdef State state |
24 cdef Game _game | |
25 cdef LaserType _laser_type | 23 cdef LaserType _laser_type |
26 | 24 |
27 cdef void set_anim(self, long sprite_idx_offset=*) except * | 25 cdef void set_anim(self, long sprite_idx_offset=*) except * |
28 cpdef set_base_pos(self, double x, double y) | 26 cpdef set_base_pos(self, double x, double y) |
29 cdef bint _check_collision(self, double point[2], double border_size) | 27 cdef bint _check_collision(self, double point[2], double border_size) |