Planeshift
Public Member Functions | Protected Attributes

psQuestPrereqOpKnownSpell Class Reference

Spell knownledge prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

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

Protected Attributes

csString spell

Detailed Description

Spell knownledge prerequisite operator.

The actor must know a certain spell.

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

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

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


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