Planeshift
psQuestPrereqOpGender Class Reference

Gender prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

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

Detailed Description

Gender prerequisite operator.

The actor must be of a certain gender.

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

virtual psQuestPrereqOpGender::~psQuestPrereqOpGender ( )
inlinevirtual

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


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