Planeshift
psQuestPrereqOpTrait Class Reference

Trait prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if the specified trait is present. More...
 
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the prerequisite operator. More...
 
virtual csString GetScriptOp ()
 Convert the prerequisite operator to a xml string. More...
 
 psQuestPrereqOpTrait (const char *traitName, csString traitLocationString)
 Construct a Trait operator. More...
 
virtual ~psQuestPrereqOpTrait ()
 
- 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

PSTRAIT_LOCATION traitLocation
 
csString traitName
 

Detailed Description

Trait prerequisite operator.

The actor must have a certain Trait in a certain position.

Definition at line 774 of file psquestprereqops.h.

Constructor & Destructor Documentation

psQuestPrereqOpTrait::psQuestPrereqOpTrait ( const char *  traitName,
csString  traitLocationString 
)
inline

Construct a Trait operator.

Definition at line 786 of file psquestprereqops.h.

virtual psQuestPrereqOpTrait::~psQuestPrereqOpTrait ( )
inlinevirtual

Definition at line 800 of file psquestprereqops.h.

Member Function Documentation

virtual bool psQuestPrereqOpTrait::Check ( psCharacter character)
virtual

Check if the specified trait is present.

Parameters
characterThe character that are checking for a prerequisite.
Returns
True if the trait is present.

Implements psQuestPrereqOp.

virtual csPtr<psQuestPrereqOp> psQuestPrereqOpTrait::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 psQuestPrereqOpTrait::GetScriptOp ( )
virtual

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <activemagic name="-activemagic"/>

Returns
XML string for the prerequisite operator.

Implements psQuestPrereqOp.

Member Data Documentation

PSTRAIT_LOCATION psQuestPrereqOpTrait::traitLocation
protected

Definition at line 778 of file psquestprereqops.h.

csString psQuestPrereqOpTrait::traitName
protected

Definition at line 777 of file psquestprereqops.h.


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