Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

Event Class Reference

Base class for events (non instantanious effects). More...

#include <events.h>

Inheritance diagram for Event:

Inheritance graph
[legend]
Collaboration diagram for Event:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Event (Object *obj, Uint16 length, Uint16 edelay=0, Uint32 switchstate=NOTHING)
virtual ~Event ()
 Resets the event state of owner.
virtual Uint16 update (Uint16 dt)
virtual void cancel ()
virtual void start ()
virtual void end ()
virtual void reset ()

Protected Attributes

Objectowner
Uint16 duration
Uint16 delay
Sint16 tleft
bool started
Uint32 state

Detailed Description

Base class for events (non instantanious effects).

Organize effects that aren't instantanious. Updated by PhysicHandler, usually a member of an Object (controlled by the object). An effect can be delayed and has a certain run period (marked by a state).


Constructor & Destructor Documentation

Event::Event Object obj,
Uint16  length,
Uint16  edelay = 0,
Uint32  switchstate = NOTHING
 

Parameters:
obj Object that controls the event
length Time after start until the event ends
edelay Time until the event starts
switchstate State changes between start and end/cancel


The documentation for this class was generated from the following file:
Generated on Sun Feb 5 13:02:36 2006 for Lost Penguins by doxygen 1.3.8