Planeshift
psQuestPrereqOpGuild Class Reference

Guild prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

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

Detailed Description

Guild prerequisite operator.

The actor must be in a certain type of guild or none.

Definition at line 986 of file psquestprereqops.h.

Constructor & Destructor Documentation

psQuestPrereqOpGuild::psQuestPrereqOpGuild ( const char *  guildtype,
const char *  guildName 
)
inline

Construct a guild operator.

Parameters
guildtypeThe type of guild the character must be
guildNameThe name of the quild.

Definition at line 1000 of file psquestprereqops.h.

virtual psQuestPrereqOpGuild::~psQuestPrereqOpGuild ( )
inlinevirtual

Definition at line 1002 of file psquestprereqops.h.

Member Function Documentation

virtual bool psQuestPrereqOpGuild::Check ( psCharacter character)
virtual

Check if the character is in a specified type of guild.

Parameters
characterThe character that are checking for a prerequisite
Returns
True if the character is in the guild type we are looking for.

Implements psQuestPrereqOp.

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

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <guild type="type of the guild"/>

Returns
XML string for the prerequisite operator.

Implements psQuestPrereqOp.

Member Data Documentation

csString psQuestPrereqOpGuild::guildName
protected

Definition at line 990 of file psquestprereqops.h.

csString psQuestPrereqOpGuild::guildtype
protected

Definition at line 989 of file psquestprereqops.h.


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