Planeshift
psQuestPrereqOpList Class Reference

Basis list prerequisite operator. More...

#include <psquestprereqops.h>

Public Member Functions

virtual void Insert (size_t n, csRef< psQuestPrereqOp > prereqOp)
 Insert a new child prerequisite onto the child list. More...
 
virtual void Push (csRef< psQuestPrereqOp > prereqOp)
 Push a new child prerequisite onto the child list. More...
 
virtual ~psQuestPrereqOpList ()
 Destructor for the list prerequisite operator. More...
 
- Public Member Functions inherited from psQuestPrereqOp
virtual bool Check (psCharacter *character)=0
 Check for valid prerequisite. More...
 
virtual csPtr< psQuestPrereqOpCopy ()=0
 Copy the prerequisite operator. More...
 
virtual csString GetScript ()
 Convert the prerequisite script to a xml string. More...
 
virtual csString GetScriptOp ()=0
 Convert the prerequisite operator to a xml string. More...
 
virtual ~psQuestPrereqOp ()
 Destructor for the prerequisite operator. More...
 

Protected Attributes

csRefArray< psQuestPrereqOpprereqlist
 The list of child prerequisite operators for this list operator. More...
 

Detailed Description

Basis list prerequisite operator.

Define basic operations for operations needing any number of prerequisites to be complete. Like an and operator with any numbers of childs.

Definition at line 115 of file psquestprereqops.h.

Constructor & Destructor Documentation

virtual psQuestPrereqOpList::~psQuestPrereqOpList ( )
inlinevirtual

Destructor for the list prerequisite operator.

Will delete any prerequisite pushed on to the list of child prerequisites.

Definition at line 130 of file psquestprereqops.h.

Member Function Documentation

virtual void psQuestPrereqOpList::Insert ( size_t  n,
csRef< psQuestPrereqOp prereqOp 
)
virtual

Insert a new child prerequisite onto the child list.

Add another prerequisite operator to the list of childs for this list prerequisite.

Parameters
nInsert the prereqOp before prerequisite n
prereqOpThe prerequisite operator to be inserted to the list.
virtual void psQuestPrereqOpList::Push ( csRef< psQuestPrereqOp prereqOp)
virtual

Push a new child prerequisite onto the child list.

Add another prerequisite operator to the list of childs for this list prerequisite.

Parameters
prereqOpThe prerequisite operator to be appended to the list.

Member Data Documentation

csRefArray<psQuestPrereqOp> psQuestPrereqOpList::prereqlist
protected

The list of child prerequisite operators for this list operator.

Definition at line 121 of file psquestprereqops.h.


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