Planeshift
psPrereqOpStance Class Reference

Stance requirement operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if the player stance is correct. More...
 
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the requirement operator. More...
 
virtual csString GetScriptOp ()
 Convert the requirement operator to a xml string. More...
 
 psPrereqOpStance (csString stance)
 Construct a stance operator. More...
 
virtual ~psPrereqOpStance ()
 Destructor. More...
 
- 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

csString stance
 

Detailed Description

Stance requirement operator.

Checks for various stances

Definition at line 1484 of file psquestprereqops.h.

Constructor & Destructor Documentation

psPrereqOpStance::psPrereqOpStance ( csString  stance)
inline

Construct a stance operator.

Parameters
stanceThe stance which should be checked for.

Definition at line 1496 of file psquestprereqops.h.

virtual psPrereqOpStance::~psPrereqOpStance ( )
inlinevirtual

Destructor.

Definition at line 1501 of file psquestprereqops.h.

Member Function Documentation

virtual bool psPrereqOpStance::Check ( psCharacter character)
virtual

Check if the player stance is correct.

Parameters
characterThe character that are checking for a requirement
Returns
True if specs are correct.

Implements psQuestPrereqOp.

virtual csPtr<psQuestPrereqOp> psPrereqOpStance::Copy ( )
virtual

Copy the requirement operator.

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

Returns
Copy of the requirement operator.

Implements psQuestPrereqOp.

virtual csString psPrereqOpStance::GetScriptOp ( )
virtual

Convert the requirement operator to a xml string.

Convert the operator into the xml string: <stance name="stance name">

Returns
XML string for the requirement operator.

Implements psQuestPrereqOp.

Member Data Documentation

csString psPrereqOpStance::stance
protected

Definition at line 1487 of file psquestprereqops.h.


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