comparison pytouhou/game/player.py @ 303:647bde10353d

Add score/effective_score distinction and prepare for highscore handling.
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Mar 2012 20:37:15 +0100
parents 94c636f8f863
children f3099ebf4f61
comparison
equal deleted inserted replaced
302:34ea45d95489 303:647bde10353d
26 class PlayerState(object): 26 class PlayerState(object):
27 def __init__(self, character=0, score=0, power=0, lives=2, bombs=3): 27 def __init__(self, character=0, score=0, power=0, lives=2, bombs=3):
28 self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/... 28 self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/...
29 29
30 self.score = score 30 self.score = score
31 self.effective_score = score
31 self.lives = lives 32 self.lives = lives
32 self.bombs = bombs 33 self.bombs = bombs
33 self.power = power 34 self.power = power
34 35
35 self.graze = 0 36 self.graze = 0