Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpTimeOnline Class Reference

Time online time 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.
 psQuestPrereqOpTimeOnline (int minTime, int maxTime)
 Construct an online time operator.
virtual ~psQuestPrereqOpTimeOnline ()

Protected Attributes

unsigned int maxTime
unsigned int minTime

Detailed Description

Time online time prerequisite operator.

The time must be between mintime and maxtime.

Definition at line 1133 of file psquestprereqops.h.


Constructor & Destructor Documentation

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

Construct an online time operator.

Parameters:
minTimeMinimal time online.
maxTimeMaximal time online.

Definition at line 1146 of file psquestprereqops.h.

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

Definition at line 1148 of file psquestprereqops.h.


Member Function Documentation

virtual bool psQuestPrereqOpTimeOnline::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> psQuestPrereqOpTimeOnline::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 psQuestPrereqOpTimeOnline::GetScriptOp ( ) [virtual]

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <onlinetime min="-min" max="-max" />

Returns:
XML string for the prerequisite operator.

Implements psQuestPrereqOp.


Member Data Documentation

Definition at line 1136 of file psquestprereqops.h.

Definition at line 1136 of file psquestprereqops.h.


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