Package lyntin :: Module event :: Class Event
[show private | hide private]
[frames | no frames]

Class Event

Known Subclasses:
InputEvent, MudEvent, OutputEvent, ShutdownEvent, SpamEvent

This is the basic Event class. It has an enqueue method which enqueues the event in the event queue (in the engine module). It also has an execute method which is executed when the event is dequeued and handled. Override the 'execute' function for your functionality to get executed.
Method Summary
  __init__(self)
Override this to do your event initialization here.
  __str__(self)
This allows us to print out event objects for debugging purposes.
  enqueue(self)
This enqueues this event into the event queue.
  execute(self)
Override this.

Method Details

__init__(self)
(Constructor)

Override this to do your event initialization here.

__str__(self)
(Informal representation operator)

This allows us to print out event objects for debugging purposes. Feel free to override this as well.

enqueue(self)

This enqueues this event into the event queue. Don't overload this unless you have to.

execute(self)

Override this. This gets called by the engine during event handling to execute the event.

Generated by Epydoc 2.1 on Mon Aug 9 09:17:42 2004 http://epydoc.sf.net