Mercurial > touhou
comparison pytouhou/game/player.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 | b0abb05811f7 |
children | 4ccc47828002 |
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 | 3 |
3 cdef class PlayerState: | 4 cdef class PlayerState: |
4 cdef public double x, y | 5 cdef public double x, y |
5 cdef public bint touchable, focused | 6 cdef public bint touchable, focused |
6 cdef public long character, score, effective_score, lives, bombs, power, graze, points, invulnerable_time, power_bonus | 7 cdef public long character, score, effective_score, lives, bombs, power, graze, points, invulnerable_time, power_bonus |
7 | 8 |
8 | 9 |
9 cdef class Player(Element): | 10 cdef class Player(Element): |
10 cdef public PlayerState state | 11 cdef public PlayerState state |
11 cdef public object _game | |
12 cdef public long death_time | 12 cdef public long death_time |
13 cdef public Game _game | |
13 | 14 |
14 cdef object anm | 15 cdef object anm |
15 cdef tuple speeds | 16 cdef tuple speeds |
16 cdef long fire_time, direction | 17 cdef long fire_time, direction |
17 | 18 |