Mercurial > pyntnclick
view 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 |
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