comparison pytouhou/game/bullet.pxd @ 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
1 from pytouhou.game.element cimport Element 1 from pytouhou.game.element cimport Element
2 from pytouhou.game.game cimport Game
2 from pytouhou.utils.interpolator cimport Interpolator 3 from pytouhou.utils.interpolator cimport Interpolator
3 4
4 cdef class Bullet(Element): 5 cdef class Bullet(Element):
5 cdef public unsigned long state, flags, frame, sprite_idx_offset, damage 6 cdef public unsigned long state, flags, frame, sprite_idx_offset, damage
6 cdef public double dx, dy, angle, speed 7 cdef public double dx, dy, angle, speed
7 cdef public bint player_bullet, was_visible, grazed 8 cdef public bint player_bullet, was_visible, grazed
8 cdef public object target, _game, _bullet_type 9 cdef public object target, _bullet_type
9 cdef public tuple hitbox 10 cdef public tuple hitbox
10 cdef public list attributes 11 cdef public list attributes
11 12
12 cdef Interpolator speed_interpolator 13 cdef Interpolator speed_interpolator
14 cdef Game _game
13 15
14 cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height) 16 cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height)
15 cpdef set_anim(self, sprite_idx_offset=*) 17 cpdef set_anim(self, sprite_idx_offset=*)
16 cdef void launch(self) 18 cdef void launch(self)
17 cpdef collide(self) 19 cpdef collide(self)