Mercurial > touhou
diff pytouhou/game/game.py @ 83:fc0294c745b6
Basic bullet handling! Clean up as soon as possible :p
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 03 Sep 2011 22:22:58 +0200 |
parents | ab826bc29aa2 |
children | ac2e5e1c2c3c |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -16,8 +16,10 @@ from pytouhou.utils.random import Random class GameState(object): - __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng') - def __init__(self, players, stage, rank, difficulty): + __slots__ = ('resources', 'players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng') + def __init__(self, resources, players, stage, rank, difficulty): + self.resources = resources + self.stage = stage self.players = players self.rank = rank @@ -25,3 +27,11 @@ class GameState(object): self.boss = None self.prng = Random() self.frame = 0 + + +class Resources(object): + def __init__(self, etama_anm_wrappers, players_anm_wrappers, effects_anm_wrapper): + self.etama_anm_wrappers = etama_anm_wrappers + self.players_anm_wrappers = players_anm_wrappers + self.effects_anm_wrapper = effects_anm_wrapper +