Package svs_demogame :: Module scripts :: Class ScriptStore
[show private | hide private]
[frames | no frames]

Class ScriptStore


This class is used by the ScriptHandler to store data for scripts between calls in the game loop.

Normally any variables set in a game script are lost after the script has exited.

NOTE: in its current form this is just a wrapper around a dictionary, future implementatiosn may provide some security handling, or allow custom methods to be called on the store.
Method Summary
  __init__(self)
  delete(self, name)
Removes the named data from the store.
  get(self, name, returnValue)
Retrieves some data.
  set(self, name, value)
Stores some data.

Method Details

delete(self, name)

Removes the named data from the store.

get(self, name, returnValue=None)

Retrieves some data.

If the data is not present, the return value can be used as a default.

set(self, name, value)

Stores some data.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 http://epydoc.sf.net