comparison pytouhou/game/item.pxd @ 446:3a33ed7f3b85

Make pytouhou.game.item an extension type.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Aug 2013 06:01:45 +0200
parents
children 78e1c3864e73
comparison
equal deleted inserted replaced
445:b0abb05811f7 446:3a33ed7f3b85
1 from pytouhou.game.element cimport Element
2 from pytouhou.game.player cimport Player
3 from pytouhou.utils.interpolator cimport Interpolator
4
5
6 cdef class Indicator(Element):
7 cdef Item _item
8
9 cpdef update(self)
10
11
12 cdef class Item(Element):
13 cdef public object _item_type
14
15 cdef object _game
16 cdef unsigned long frame
17 cdef long _type
18 cdef double angle, speed
19 cdef Player player
20 cdef Indicator indicator
21 cdef Interpolator speed_interpolator, pos_interpolator
22
23 cpdef autocollect(self, Player player)
24 cpdef on_collect(self, Player player)
25 cpdef update(self)