Planeshift
psQuestPrereqOpAdvisorPoints Class Reference

advisor points prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if within the advisor points range. More...
 
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the prerequisite operator. More...
 
virtual csString GetScriptOp ()
 Convert the prerequisite operator to a xml string. More...
 
 psQuestPrereqOpAdvisorPoints (int minPoints, int maxPoints, csString type)
 Construct an advisor points operator. More...
 
virtual ~psQuestPrereqOpAdvisorPoints ()
 
- Public Member Functions inherited from psQuestPrereqOp
virtual csString GetScript ()
 Convert the prerequisite script to a xml string. More...
 
virtual ~psQuestPrereqOp ()
 Destructor for the prerequisite operator. More...
 

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 1083 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 1098 of file psquestprereqops.h.

virtual psQuestPrereqOpAdvisorPoints::~psQuestPrereqOpAdvisorPoints ( )
inlinevirtual

Definition at line 1100 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

int psQuestPrereqOpAdvisorPoints::maxPoints
protected

Definition at line 1086 of file psquestprereqops.h.

int psQuestPrereqOpAdvisorPoints::minPoints
protected

Definition at line 1086 of file psquestprereqops.h.

csString psQuestPrereqOpAdvisorPoints::type
protected

Definition at line 1087 of file psquestprereqops.h.


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