comparison pytouhou/game/player.pxd @ 465:5f5955635d2c

Move continues to PlayerState, and make sure they aren’t reinitialized before each stage.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 11 Sep 2013 16:03:55 +0200
parents 4ccc47828002
children feecdb4a8928
comparison
equal deleted inserted replaced
464:36bc577b2392 465:5f5955635d2c
2 from pytouhou.game.game cimport Game 2 from pytouhou.game.game cimport Game
3 3
4 cdef class PlayerState: 4 cdef class PlayerState:
5 cdef public double x, y 5 cdef public double x, y
6 cdef public bint touchable, focused 6 cdef public bint touchable, focused
7 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
8 cdef public long graze, points
9
10 cdef long invulnerable_time, power_bonus, continues, continues_used, miss,
11 cdef long bombs_used
8 12
9 13
10 cdef class Player(Element): 14 cdef class Player(Element):
11 cdef public PlayerState state 15 cdef public PlayerState state
12 cdef public long death_time 16 cdef public long death_time