Mercurial > touhou
comparison pytouhou/game/game.py @ 52:ab826bc29aa2
Add some documentation, GPLv3 headers, README and COPYING file.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 22 Aug 2011 22:37:14 +0200 |
parents | 811cefefb5c8 |
children | fc0294c745b6 |
comparison
equal
deleted
inserted
replaced
51:0707ff53e7b5 | 52:ab826bc29aa2 |
---|---|
1 # -*- encoding: utf-8 -*- | |
2 ## | |
3 ## Copyright (C) 2011 Thibaut Girka <thib@sitedethib.com> | |
4 ## | |
5 ## This program is free software; you can redistribute it and/or modify | |
6 ## it under the terms of the GNU General Public License as published | |
7 ## by the Free Software Foundation; version 3 only. | |
8 ## | |
9 ## This program is distributed in the hope that it will be useful, | |
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 ## GNU General Public License for more details. | |
13 ## | |
14 | |
15 | |
1 from pytouhou.utils.random import Random | 16 from pytouhou.utils.random import Random |
2 | 17 |
3 class GameState(object): | 18 class GameState(object): |
4 __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng') | 19 __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng') |
5 def __init__(self, players, stage, rank, difficulty): | 20 def __init__(self, players, stage, rank, difficulty): |