Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpTimeOfDay Class Reference

Time of day prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if within the time range.
virtual csPtr< psQuestPrereqOpCopy ()
 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

Detailed Description

Time of day prerequisite operator.

The time must be between mintime and maxtime.

Definition at line 1184 of file psquestprereqops.h.


Constructor & Destructor Documentation

psQuestPrereqOpTimeOfDay::psQuestPrereqOpTimeOfDay ( int  minTime,
int  maxTime 
) [inline]

Construct a time of the day operator.

Parameters:
minTimeMinimal time of day.
maxTimeMaximal time of day.

Definition at line 1197 of file psquestprereqops.h.

virtual psQuestPrereqOpTimeOfDay::~psQuestPrereqOpTimeOfDay ( ) [inline, virtual]

Definition at line 1199 of file psquestprereqops.h.


Member Function Documentation

virtual bool psQuestPrereqOpTimeOfDay::Check ( psCharacter character) [virtual]

Check if within the time range.

Parameters:
characterThe character that are checking for a prerequisite.
Returns:
True if in the valid range.

Implements psQuestPrereqOp.

virtual csPtr<psQuestPrereqOp> psQuestPrereqOpTimeOfDay::Copy ( ) [virtual]

Copy the prerequisite operator.

Override this function to return a copy of the prerequisite operator.

Returns:
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"/>

Returns:
XML string for the prerequisite operator.

Implements psQuestPrereqOp.


Member Data Documentation

Definition at line 1187 of file psquestprereqops.h.

Definition at line 1187 of file psquestprereqops.h.


The documentation for this class was generated from the following file: