Mercurial > touhou
comparison pytouhou/game/bullet.pxd @ 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 |
---|---|
1 from pytouhou.game.element cimport Element | 1 from pytouhou.game.element cimport Element |
2 from pytouhou.game.game cimport Game | 2 from pytouhou.game.game cimport Game |
3 from pytouhou.utils.interpolator cimport Interpolator | 3 from pytouhou.utils.interpolator cimport Interpolator |
4 | 4 |
5 | |
6 cdef enum State: | |
7 LAUNCHING, LAUNCHED, CANCELLED | |
8 | |
9 | |
5 cdef class Bullet(Element): | 10 cdef class Bullet(Element): |
6 cdef public unsigned long state, flags, frame, sprite_idx_offset, damage | 11 cdef public State state |
12 cdef public unsigned long flags, frame, sprite_idx_offset, damage | |
7 cdef public double dx, dy, angle, speed | 13 cdef public double dx, dy, angle, speed |
8 cdef public bint player_bullet, was_visible, grazed | 14 cdef public bint player_bullet, was_visible, grazed |
9 cdef public object target, _bullet_type | 15 cdef public object target, _bullet_type |
10 cdef public tuple hitbox | 16 cdef public tuple hitbox |
11 cdef public list attributes | 17 cdef public list attributes |