Mercurial > pyntnclick
view gamelib/state.py @ 13:65d9de520328
Initial stab at README.txt file.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 16:20:39 +0200 |
parents | e9dc681911c4 |
children | c9b124c2f5c6 |
line wrap: on
line source
"""Utilities and base classes for dealing with scenes.""" def initial_state(): """Load the initial state.""" state = State() # TODO: populate state return state class State(object): """Complete game state. Game state consists of: * items * scenes """ def __init__(self): # map of scene name -> Scene object self.scenes = {} # map of item name -> Item object self.items = {} class Scene(object): """Base class for scenes.""" def __init__(self): pass class Item(object): """Base class for items.""" def __init__(self): pass