Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpRace Class Reference

race prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

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

Protected Attributes

csString race

Detailed Description

race prerequisite operator.

The actor must be of a certain race.

Definition at line 833 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 845 of file psquestprereqops.h.

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

Definition at line 847 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 836 of file psquestprereqops.h.


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