Event class public functions

Event
~Event
action
getGroup
getType
getStatus
getActionTime
kill
setGroup
setType

Event(void);


~Event();


void action(void) = 0;
Performs an the approporiate action according to the type of event.

int getGroup(void) const;
Returns the group number which can be used to control sets of events.

int getStatus(void) const;
Returns the state of the event: whether the event is created, on, paused, or destroyed

int getType(void) const;
Returns the Event category of the object.

virtual double getActionTime(void) const = 0;
Returns the time at which an action is required.

virtual void kill(void) = 0;
Sets the status of an event to "destroyed" and makes sure proper measures are taken when killing the event.
virtual void kill(int aGroup);
Will kill the event if the group of the event equals aGroup; otherwise, the message will be ignored.

void setGroup(int aGroup=0);
Sets the group to aGroup. aGroup must be within the range of a short int.

void setType(int aType);
Sets the type to aType. aType must be within the range or a short int.