Mercurial > touhou
diff pytouhou/game/player.py @ 331:1b4f04b08729
Add the story mode.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 30 Jun 2012 19:37:21 +0200 |
parents | 56523a16db1d |
children | 2350147cf043 |
line wrap: on
line diff
--- a/pytouhou/game/player.py +++ b/pytouhou/game/player.py @@ -46,6 +46,11 @@ class PlayerState(object): self.power_bonus = 0 # Never goes over 30. + def copy(self): + return PlayerState(self.character, self.score, + self.power, self.lives, self.bombs) + + class Player(object): def __init__(self, state, game, anm_wrapper): self._game = game