Mercurial > touhou
comparison pytouhou/game/bullet.pyx @ 448:3bc37791f0a2
Make Bullet.state an enum.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 17 Aug 2013 17:44:11 +0200 |
parents | 78e1c3864e73 |
children | feecdb4a8928 |
comparison
equal
deleted
inserted
replaced
447:78e1c3864e73 | 448:3bc37791f0a2 |
---|---|
15 from libc.math cimport cos, sin, atan2, M_PI as pi | 15 from libc.math cimport cos, sin, atan2, M_PI as pi |
16 | 16 |
17 from pytouhou.vm.anmrunner import ANMRunner | 17 from pytouhou.vm.anmrunner import ANMRunner |
18 from pytouhou.game.sprite cimport Sprite | 18 from pytouhou.game.sprite cimport Sprite |
19 | 19 |
20 | |
21 LAUNCHING, LAUNCHED, CANCELLED = range(3) | |
22 | 20 |
23 cdef class Bullet(Element): | 21 cdef class Bullet(Element): |
24 def __init__(self, pos, bullet_type, unsigned long sprite_idx_offset, | 22 def __init__(self, pos, bullet_type, unsigned long sprite_idx_offset, |
25 double angle, double speed, attributes, unsigned long flags, target, Game game, | 23 double angle, double speed, attributes, unsigned long flags, target, Game game, |
26 bint player_bullet=False, unsigned long damage=0, hitbox=None): | 24 bint player_bullet=False, unsigned long damage=0, hitbox=None): |