dreams
index
/home/thindil/Projekty/anaria/server/lib/pymodules/dreams.py

dreams.py
 
Functions and events for character dreams.

 
Modules
       
event
hooks
mudsys
random
storage

 
Classes
       
Dream

 
class Dream
    Implements one dream.
 
  Methods defined here:
__init__(self, type, body, set=None)
Standard class constructor.
getBody(self)
getType(self)
setBody(self, body)
setType(self, type)
# various getters and setters for the Dream class
store(self)
return a storage set representation of the dream.

 
Functions
       
__unload__()
things that need to be detached when the module is un/reloaded
cmd_dreams(ch, cmd, arg)
Usage: sny <dodaj | usun | pokaz> <sen | koszmar> [number]
 
Add, delete or show list of dreams in selected kategory.
dream_event(owner, void, info)
Event show dreams to player.
load_dreams()
read all of the dreams from file.
save_dreams()
save all of the dreams to a file.
sleep_hook(info)
Show dreams to player.

 
Data
        __dreams__ = [<dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>, <dreams.Dream instance>]
__dreams_file__ = '../lib/misc/dreams'