comparison pytouhou/game/laser.pxd @ 540:53fa73932e9a

Fix warnings introduced in Cython 0.20, when more than one pointer is defined on the same line.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 10 May 2014 22:20:22 +0200
parents b32cef75df59
children a6af3ff86612
comparison
equal deleted inserted replaced
539:d6d9a711253d 540:53fa73932e9a
16 cdef public unsigned long frame 16 cdef public unsigned long frame
17 cdef public double angle 17 cdef public double angle
18 18
19 cdef unsigned long start_duration, duration, stop_duration, grazing_delay, 19 cdef unsigned long start_duration, duration, stop_duration, grazing_delay,
20 cdef unsigned long grazing_extra_duration, sprite_idx_offset 20 cdef unsigned long grazing_extra_duration, sprite_idx_offset
21 cdef double base_pos[2], speed, start_offset, end_offset, max_length, width 21 cdef double base_pos[2]
22 cdef double speed, start_offset, end_offset, max_length, width
22 cdef State state 23 cdef State state
23 cdef LaserType _laser_type 24 cdef LaserType _laser_type
24 25
25 cdef void set_anim(self, long sprite_idx_offset=*) except * 26 cdef void set_anim(self, long sprite_idx_offset=*) except *
26 cpdef set_base_pos(self, double x, double y) 27 cpdef set_base_pos(self, double x, double y)
31 cpdef cancel(self) 32 cpdef cancel(self)
32 cpdef update(self) 33 cpdef update(self)
33 34
34 35
35 cdef class PlayerLaser(Element): 36 cdef class PlayerLaser(Element):
36 cdef double hitbox[2], angle, offset 37 cdef double hitbox[2]
38 cdef double angle, offset
37 cdef unsigned long frame, duration, sprite_idx_offset, damage 39 cdef unsigned long frame, duration, sprite_idx_offset, damage
38 cdef Element origin 40 cdef Element origin
39 cdef LaserType _laser_type 41 cdef LaserType _laser_type
40 42
41 cdef void set_anim(self, long sprite_idx_offset=*) except * 43 cdef void set_anim(self, long sprite_idx_offset=*) except *