Mercurial > touhou
comparison pytouhou/game/bullet.pxd @ 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 | feecdb4a8928 |
children | 887de1309491 |
comparison
equal
deleted
inserted
replaced
471:06f0eeb519bb | 472:8038f1957b71 |
---|---|
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.game.bullettype cimport BulletType | |
3 from pytouhou.utils.interpolator cimport Interpolator | 4 from pytouhou.utils.interpolator cimport Interpolator |
4 | 5 |
5 | 6 |
6 cdef enum State: | 7 cdef enum State: |
7 LAUNCHING, LAUNCHED, CANCELLED | 8 LAUNCHING, LAUNCHED, CANCELLED |
10 cdef class Bullet(Element): | 11 cdef class Bullet(Element): |
11 cdef public State state | 12 cdef public State state |
12 cdef public unsigned long flags, frame, sprite_idx_offset, damage | 13 cdef public unsigned long flags, frame, sprite_idx_offset, damage |
13 cdef public double dx, dy, angle, speed | 14 cdef public double dx, dy, angle, speed |
14 cdef public bint player_bullet, was_visible, grazed | 15 cdef public bint player_bullet, was_visible, grazed |
15 cdef public object target, _bullet_type | 16 cdef public Element target |
17 cdef public BulletType _bullet_type | |
16 cdef public list attributes | 18 cdef public list attributes |
17 | 19 |
18 cdef double hitbox[2] | 20 cdef double hitbox[2] |
19 cdef Interpolator speed_interpolator | 21 cdef Interpolator speed_interpolator |
20 cdef Game _game | 22 cdef Game _game |