Mercurial > pyntnclick
comparison gamelib/state.py @ 9:6db58d31dd4c
Function for loading initial state.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 15:59:37 +0200 |
parents | d7c9d8273d7f |
children | e9dc681911c4 |
comparison
equal
deleted
inserted
replaced
8:fadfd4479e24 | 9:6db58d31dd4c |
---|---|
1 """Utilities and base classes for dealing with scenes.""" | 1 """Utilities and base classes for dealing with scenes.""" |
2 | |
3 def initial_state(): | |
4 """Load the initial state.""" | |
5 state = State() | |
6 # TODO: populate state | |
7 return state | |
8 | |
2 | 9 |
3 class State(object): | 10 class State(object): |
4 """Complete game state. | 11 """Complete game state. |
5 | 12 |
6 Game state consists of: | 13 Game state consists of: |