Planeshift
|
Time of day prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if within the time range. More... | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. More... | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. More... | |
psQuestPrereqOpTimeOfDay (int minTime, int maxTime) | |
Construct a time of the day operator. More... | |
virtual | ~psQuestPrereqOpTimeOfDay () |
![]() | |
virtual csString | GetScript () |
Convert the prerequisite script to a xml string. More... | |
virtual | ~psQuestPrereqOp () |
Destructor for the prerequisite operator. More... | |
Protected Attributes | |
int | maxTime |
int | minTime |
Time of day prerequisite operator.
The time must be between mintime and maxtime.
Definition at line 1187 of file psquestprereqops.h.
Construct a time of the day operator.
minTime | Minimal time of day. |
maxTime | Maximal time of day. |
Definition at line 1200 of file psquestprereqops.h.
|
inlinevirtual |
Definition at line 1202 of file psquestprereqops.h.
|
virtual |
Check if within the time range.
character | The character that are checking for a prerequisite. |
Implements psQuestPrereqOp.
|
virtual |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
|
virtual |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <timeofday min="-min" max="-max"/>
Implements psQuestPrereqOp.
|
protected |
Definition at line 1190 of file psquestprereqops.h.
|
protected |
Definition at line 1190 of file psquestprereqops.h.