Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpTrait Class Reference

Trait prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

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

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


Constructor & Destructor Documentation

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

Construct a Trait operator.

Definition at line 783 of file psquestprereqops.h.

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

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

Definition at line 775 of file psquestprereqops.h.

csString psQuestPrereqOpTrait::traitName [protected]

Definition at line 774 of file psquestprereqops.h.


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