Planeshift
Public Member Functions

psQuestPrereqOpAnd Class Reference

And Prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

virtual bool Check (psCharacter *character)
 Check if all child prerequisites are true.
virtual csPtr< psQuestPrereqOpCopy ()
 Copy the prerequisite operator.
virtual csString GetScriptOp ()
 Convert the prerequisite operator to a xml string.
virtual ~psQuestPrereqOpAnd ()
 Destructor for the and prerequisite operator.

Detailed Description

And Prerequisite operator.

A multi term and operator. Every prerequisite have to be true for this operator to be valid.

Definition at line 158 of file psquestprereqops.h.


Constructor & Destructor Documentation

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

Destructor for the and prerequisite operator.

Definition at line 165 of file psquestprereqops.h.


Member Function Documentation

virtual bool psQuestPrereqOpAnd::Check ( psCharacter character) [virtual]

Check if all child prerequisites are true.

prerequisite = child1 and child2 and ... childN

Parameters:
characterThe character that are checking for a prerequisite
Returns:
True if all the child prerequisites are true

Implements psQuestPrereqOp.

virtual csPtr<psQuestPrereqOp> psQuestPrereqOpAnd::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 psQuestPrereqOpAnd::GetScriptOp ( ) [virtual]

Convert the prerequisite operator to a xml string.

Convert the operator to the xml string: <and><child1/>...<childN/></and>

Returns:
XML string for the prerequisite operator.

Implements psQuestPrereqOp.


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