Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpAdvisorPoints Class Reference

advisor points prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if within the advisor points range.
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the prerequisite operator.
virtual csString GetScriptOp ()
 Convert the prerequisite operator to a xml string.
 psQuestPrereqOpAdvisorPoints (int minPoints, int maxPoints, csString type)
 Construct an advisor points operator.
virtual ~psQuestPrereqOpAdvisorPoints ()

Protected Attributes

int maxPoints
int minPoints
csString type

Detailed Description

advisor points prerequisite operator.

The advisorpoints must be beetwen maxPoints and minPoints.

Definition at line 1080 of file psquestprereqops.h.


Constructor & Destructor Documentation

psQuestPrereqOpAdvisorPoints::psQuestPrereqOpAdvisorPoints ( int  minPoints,
int  maxPoints,
csString  type 
) [inline]

Construct an advisor points operator.

Parameters:
minPointsMinimal advisor points.
maxPointsMaximal advisor points.
typeType of the check.

Definition at line 1095 of file psquestprereqops.h.

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

Definition at line 1097 of file psquestprereqops.h.


Member Function Documentation

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

Check if within the advisor points range.

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

Implements psQuestPrereqOp.

virtual csPtr<psQuestPrereqOp> psQuestPrereqOpAdvisorPoints::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 psQuestPrereqOpAdvisorPoints::GetScriptOp ( ) [virtual]

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <advisorpoints min="-min" max="-max" type="min/max/both"/>

Returns:
XML string for the prerequisite operator.

Implements psQuestPrereqOp.


Member Data Documentation

Definition at line 1083 of file psquestprereqops.h.

Definition at line 1083 of file psquestprereqops.h.

csString psQuestPrereqOpAdvisorPoints::type [protected]

Definition at line 1084 of file psquestprereqops.h.


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