Mercurial > touhou
diff pytouhou/game/game.py @ 50:811cefefb5c8
Fix a few bugs and add support for a few instructions
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 22 Aug 2011 21:16:47 +0200 |
parents | cbe1cb50f2fd |
children | ab826bc29aa2 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -1,9 +1,12 @@ +from pytouhou.utils.random import Random + class GameState(object): - __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss') + __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng') def __init__(self, players, stage, rank, difficulty): self.stage = stage self.players = players self.rank = rank self.difficulty = difficulty self.boss = None + self.prng = Random() self.frame = 0