Planeshift
psQuestPrereqOpKnownSpell Class Reference

Spell knownledge prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

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

Detailed Description

Spell knownledge prerequisite operator.

The actor must know a certain spell.

Definition at line 936 of file psquestprereqops.h.

Constructor & Destructor Documentation

psQuestPrereqOpKnownSpell::psQuestPrereqOpKnownSpell ( const char *  spell)
inline

Construct a Spell Known operator.

Parameters
spellThe spell the character must know.

Definition at line 948 of file psquestprereqops.h.

virtual psQuestPrereqOpKnownSpell::~psQuestPrereqOpKnownSpell ( )
inlinevirtual

Definition at line 950 of file psquestprereqops.h.

Member Function Documentation

virtual bool psQuestPrereqOpKnownSpell::Check ( psCharacter character)
virtual

Check if the character known the specified spell.

Parameters
characterThe character that are checking for a prerequisite
Returns
True if the spell we are looking for is known.

Implements psQuestPrereqOp.

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

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <knownspell spell="Spell Name"/>

Returns
XML string for the prerequisite operator.

Implements psQuestPrereqOp.

Member Data Documentation

csString psQuestPrereqOpKnownSpell::spell
protected

Definition at line 939 of file psquestprereqops.h.


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