Planeshift
psQuestPrereqOpMarriage Class Reference

Marriage prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if the character is married or not. More...
 
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the prerequisite operator. More...
 
virtual csString GetScriptOp ()
 Convert the prerequisite operator to a xml string. More...
 
 psQuestPrereqOpMarriage ()
 Construct a marriage operator. More...
 
virtual ~psQuestPrereqOpMarriage ()
 
- 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...
 

Detailed Description

Marriage prerequisite operator.

The actor must be married or not.

Definition at line 1038 of file psquestprereqops.h.

Constructor & Destructor Documentation

psQuestPrereqOpMarriage::psQuestPrereqOpMarriage ( )
inline

Construct a marriage operator.

Definition at line 1045 of file psquestprereqops.h.

virtual psQuestPrereqOpMarriage::~psQuestPrereqOpMarriage ( )
inlinevirtual

Definition at line 1047 of file psquestprereqops.h.

Member Function Documentation

virtual bool psQuestPrereqOpMarriage::Check ( psCharacter character)
virtual

Check if the character is married or not.

Parameters
characterThe character that are checking for a prerequisite
Returns
True if the character is married or not.

Implements psQuestPrereqOp.

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

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <marriage status="yes/no"/>

Returns
XML string for the prerequisite operator.

Implements psQuestPrereqOp.


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