Planeshift
psQuestPrereqOpRace Class Reference

race prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if the character is of the specific race. More...
 
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the prerequisite operator. More...
 
virtual csString GetScriptOp ()
 Convert the prerequisite operator to a xml string. More...
 
 psQuestPrereqOpRace (const char *race)
 Construct a race operator. More...
 
virtual ~psQuestPrereqOpRace ()
 
- 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 race
 

Detailed Description

race prerequisite operator.

The actor must be of a certain race.

Definition at line 836 of file psquestprereqops.h.

Constructor & Destructor Documentation

psQuestPrereqOpRace::psQuestPrereqOpRace ( const char *  race)
inline

Construct a race operator.

Parameters
raceThe name of the race the actor is required to be.

Definition at line 848 of file psquestprereqops.h.

virtual psQuestPrereqOpRace::~psQuestPrereqOpRace ( )
inlinevirtual

Definition at line 850 of file psquestprereqops.h.

Member Function Documentation

virtual bool psQuestPrereqOpRace::Check ( psCharacter character)
virtual

Check if the character is of the specific race.

Parameters
characterThe character that are checking for a prerequisite
Returns
True if the race is the one we are looking for.

Implements psQuestPrereqOp.

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

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <race name="racename"/>

Returns
XML string for the prerequisite operator.

Implements psQuestPrereqOp.

Member Data Documentation

csString psQuestPrereqOpRace::race
protected

Definition at line 839 of file psquestprereqops.h.


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