Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
49:cbe1cb50f2fd | 50:811cefefb5c8 |
---|---|
1 from pytouhou.utils.random import Random | |
2 | |
1 class GameState(object): | 3 class GameState(object): |
2 __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss') | 4 __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng') |
3 def __init__(self, players, stage, rank, difficulty): | 5 def __init__(self, players, stage, rank, difficulty): |
4 self.stage = stage | 6 self.stage = stage |
5 self.players = players | 7 self.players = players |
6 self.rank = rank | 8 self.rank = rank |
7 self.difficulty = difficulty | 9 self.difficulty = difficulty |
8 self.boss = None | 10 self.boss = None |
11 self.prng = Random() | |
9 self.frame = 0 | 12 self.frame = 0 |