comparison pytouhou/game/laser.pyx @ 472:8038f1957b71

Type bullettype, itemtype and lasertype a bit.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 16 Sep 2013 18:42:04 +0200
parents 06f0eeb519bb
children 2276229282fd
comparison
equal deleted inserted replaced
471:06f0eeb519bb 472:8038f1957b71
45 self.removed = True 45 self.removed = True
46 46
47 47
48 48
49 cdef class Laser(Element): 49 cdef class Laser(Element):
50 def __init__(self, tuple base_pos, laser_type, 50 def __init__(self, tuple base_pos, LaserType laser_type,
51 unsigned long sprite_idx_offset, double angle, double speed, 51 unsigned long sprite_idx_offset, double angle, double speed,
52 double start_offset, double end_offset, double max_length, 52 double start_offset, double end_offset, double max_length,
53 double width, unsigned long start_duration, 53 double width, unsigned long start_duration,
54 unsigned long duration, unsigned long stop_duration, 54 unsigned long duration, unsigned long stop_duration,
55 unsigned long grazing_delay, 55 unsigned long grazing_delay,
196 196
197 self.frame += 1 197 self.frame += 1
198 198
199 199
200 cdef class PlayerLaser(Element): 200 cdef class PlayerLaser(Element):
201 def __init__(self, laser_type, unsigned long sprite_idx_offset, 201 def __init__(self, LaserType laser_type, unsigned long sprite_idx_offset,
202 tuple hitbox, unsigned long damage, double angle, 202 tuple hitbox, unsigned long damage, double angle,
203 double offset, unsigned long duration, Element origin): 203 double offset, unsigned long duration, Element origin):
204 Element.__init__(self) 204 Element.__init__(self)
205 205
206 self._laser_type = laser_type 206 self._laser_type = laser_type