Planeshift
|
Gender prerequisite operator. More...
#include <psquestprereqops.h>
Public Member Functions | |
virtual bool | Check (psCharacter *character) |
Check if the character is of the specified gender. | |
virtual csPtr< psQuestPrereqOp > | Copy () |
Copy the prerequisite operator. | |
virtual csString | GetScriptOp () |
Convert the prerequisite operator to a xml string. | |
psQuestPrereqOpGender (const char *gender) | |
Construct a gender operator. | |
virtual | ~psQuestPrereqOpGender () |
Protected Attributes | |
csString | gender |
Gender prerequisite operator.
The actor must be of a certain gender.
Definition at line 883 of file psquestprereqops.h.
psQuestPrereqOpGender::psQuestPrereqOpGender | ( | const char * | gender | ) | [inline] |
Construct a gender operator.
gender | The sex the character must be. |
Definition at line 895 of file psquestprereqops.h.
virtual psQuestPrereqOpGender::~psQuestPrereqOpGender | ( | ) | [inline, virtual] |
Definition at line 897 of file psquestprereqops.h.
virtual bool psQuestPrereqOpGender::Check | ( | psCharacter * | character | ) | [virtual] |
Check if the character is of the specified gender.
character | The character that are checking for a prerequisite |
Implements psQuestPrereqOp.
virtual csPtr<psQuestPrereqOp> psQuestPrereqOpGender::Copy | ( | ) | [virtual] |
Copy the prerequisite operator.
Override this function to return a copy of the prerequisite operator.
Implements psQuestPrereqOp.
virtual csString psQuestPrereqOpGender::GetScriptOp | ( | ) | [virtual] |
Convert the prerequisite operator to a xml string.
Convert the operator into the xml string: <gender type="Gender Initial"/>
Implements psQuestPrereqOp.
csString psQuestPrereqOpGender::gender [protected] |
Definition at line 886 of file psquestprereqops.h.