Mercurial > pyntnclick
view gamelib/state.py @ 11:e9dc681911c4
Add missing newline.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 16:06:03 +0200 |
parents | 6db58d31dd4c |
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