Planeshift
psQuestPrereqOpActiveMagic Class Reference

Active magic prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if the specified magic is active. More...
 
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the prerequisite operator. More...
 
virtual csString GetScriptOp ()
 Convert the prerequisite operator to a xml string. More...
 
 psQuestPrereqOpActiveMagic (const char *activeMagic)
 Construct an active magic operator. More...
 
virtual ~psQuestPrereqOpActiveMagic ()
 
- 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 activeMagic
 

Detailed Description

Active magic prerequisite operator.

The actor must have a certain active magic (buff or debuff).

Definition at line 724 of file psquestprereqops.h.

Constructor & Destructor Documentation

psQuestPrereqOpActiveMagic::psQuestPrereqOpActiveMagic ( const char *  activeMagic)
inline

Construct an active magic operator.

Parameters
activeMagicThe name of the magic that's required to be active.

Definition at line 736 of file psquestprereqops.h.

virtual psQuestPrereqOpActiveMagic::~psQuestPrereqOpActiveMagic ( )
inlinevirtual

Definition at line 738 of file psquestprereqops.h.

Member Function Documentation

virtual bool psQuestPrereqOpActiveMagic::Check ( psCharacter character)
virtual

Check if the specified magic is active.

Parameters
characterThe character that are checking for a prerequisite.
Returns
True if the magic is active.

Implements psQuestPrereqOp.

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

Convert the prerequisite operator to a xml string.

Convert the operator into the xml string: <activemagic name="-activemagic"/>

Returns
XML string for the prerequisite operator.

Implements psQuestPrereqOp.

Member Data Documentation

csString psQuestPrereqOpActiveMagic::activeMagic
protected

Definition at line 727 of file psquestprereqops.h.


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