Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpGender Class Reference

Gender 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 specified gender.
virtual csPtr< psQuestPrereqOpCopy ()
 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

Detailed Description

Gender prerequisite operator.

The actor must be of a certain gender.

Definition at line 883 of file psquestprereqops.h.


Constructor & Destructor Documentation

psQuestPrereqOpGender::psQuestPrereqOpGender ( const char *  gender) [inline]

Construct a gender operator.

Parameters:
genderThe 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.


Member Function Documentation

virtual bool psQuestPrereqOpGender::Check ( psCharacter character) [virtual]

Check if the character is of the specified gender.

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

Implements psQuestPrereqOp.

virtual csPtr<psQuestPrereqOp> psQuestPrereqOpGender::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 psQuestPrereqOpGender::GetScriptOp ( ) [virtual]

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <gender type="Gender Initial"/>

Returns:
XML string for the prerequisite operator.

Implements psQuestPrereqOp.


Member Data Documentation

csString psQuestPrereqOpGender::gender [protected]

Definition at line 886 of file psquestprereqops.h.


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