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