Planeshift
Public Member Functions

psQuestPrereqOpOr Class Reference

Or prerequisite operator. More...

#include <psquestprereqops.h>

List of all members.

Public Member Functions

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

Detailed Description

Or prerequisite operator.

A multi term or operator. One prerequisite have to be true for this operator to be valid.

Definition at line 205 of file psquestprereqops.h.


Constructor & Destructor Documentation

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

Destructor for the or prerequisite operator.

Definition at line 212 of file psquestprereqops.h.


Member Function Documentation

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

Check if any of the child prerequisites are true.

prerequisite = child1 or child 2 or ... childN

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

Implements psQuestPrereqOp.

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

Convert the prerequisite operator to a xml string.

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

Returns:
XML string for the prerequisite operator.

Implements psQuestPrereqOp.


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