Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpGuild Class Reference

Guild prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

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

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 983 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 997 of file psquestprereqops.h.

virtual psQuestPrereqOpGuild::~psQuestPrereqOpGuild ( ) [inline, virtual]

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

csString psQuestPrereqOpGuild::guildtype [protected]

Definition at line 986 of file psquestprereqops.h.


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