Mercurial > touhou
comparison pytouhou/game/bullet.pyx @ 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 | 6b4c3e250bd6 |
children | 3bc37791f0a2 |
comparison
equal
deleted
inserted
replaced
446:3a33ed7f3b85 | 447:78e1c3864e73 |
---|---|
20 | 20 |
21 LAUNCHING, LAUNCHED, CANCELLED = range(3) | 21 LAUNCHING, LAUNCHED, CANCELLED = range(3) |
22 | 22 |
23 cdef class Bullet(Element): | 23 cdef class Bullet(Element): |
24 def __init__(self, pos, bullet_type, unsigned long sprite_idx_offset, | 24 def __init__(self, pos, bullet_type, unsigned long sprite_idx_offset, |
25 double angle, double speed, attributes, unsigned long flags, target, game, | 25 double angle, double speed, attributes, unsigned long flags, target, Game game, |
26 bint player_bullet=False, unsigned long damage=0, hitbox=None): | 26 bint player_bullet=False, unsigned long damage=0, hitbox=None): |
27 cdef double launch_mult | 27 cdef double launch_mult |
28 | 28 |
29 Element.__init__(self, pos) | 29 Element.__init__(self, pos) |
30 | 30 |