Planeshift
|
This event informs the song manager when the song is over. More...
#include <serversongmngr.h>
Public Member Functions | |
virtual bool | CheckTrigger () |
Called right before a Trigger is called. | |
psEndSongEvent (gemActor *charActor, int songLength) | |
Constructor. | |
virtual void | Trigger () |
Abstract event processing function. | |
virtual | ~psEndSongEvent () |
Destructor. |
This event informs the song manager when the song is over.
Definition at line 46 of file serversongmngr.h.
Constructor.
charActor | the player that plays this song. |
songLength | the length of the song in milliseconds. |
virtual psEndSongEvent::~psEndSongEvent | ( | ) | [virtual] |
Destructor.
virtual bool psEndSongEvent::CheckTrigger | ( | ) | [virtual] |
Called right before a Trigger is called.
Default implementation use the valid flag to determin if the Trigger should be calle.Could be overridden to allow for other conditions.
This function allows psGEMEvents to disconnect themselves
Reimplemented from psGameEvent.
virtual void psEndSongEvent::Trigger | ( | ) | [virtual] |
Abstract event processing function.
This functino have to be overridden and will be called if CheckTrigger is ok at the time given in the constructor.
Implements psGameEvent.