iQuestFactory Struct Reference
A quest factory. More...
#include <tools/questmanager.h>
Public Member Functions | |
virtual void | ClearDefaultParameters ()=0 |
Clear all default parameters on this factory. | |
virtual csPtr< iQuest > | CreateQuest (const celQuestParams ¶ms)=0 |
Instantiate a quest from this factory. | |
virtual iQuestSequenceFactory * | CreateSequence (const char *name)=0 |
Create a new sequence factory in this factory. | |
virtual iQuestStateFactory * | CreateState (const char *name)=0 |
Create a new state in this factory. | |
virtual const char * | GetDefaultParameter (const char *name) const =0 |
Get a default parameter from this factory. | |
virtual const char * | GetName () const =0 |
Get the name of this factory. | |
virtual iQuestSequenceFactory * | GetSequence (const char *name)=0 |
Get a sequence factory in this factory. | |
virtual iQuestStateFactory * | GetState (const char *name)=0 |
Get a state from this factory. | |
virtual bool | Load (iDocumentNode *node)=0 |
Load this factory from a document node. | |
virtual void | SetDefaultParameter (const char *name, const char *value)=0 |
Set a default parameter on this factory. |
Detailed Description
A quest factory.A quest factory is a template to create a quest from. All interfaces ending with 'Factory' are relevant in the concept of a quest factory.
- A quest factory is made out of a number of quest state factories (iQuestStateFactory) (from which the states in the quest are made).
- Every quest state factory has one or more trigger response factories. These response factories describe how the firing of one trigger (as described by a trigger factory) can cause a number of rewards (as described by reward factories).
Definition at line 550 of file questmanager.h.
Member Function Documentation
|
Clear all default parameters on this factory.
|
|
Instantiate a quest from this factory. This instance will have the same structure as this factory but it will be made out of non-factory objects (iQuestTrigger, iQuestReward, ...).
|
|
Create a new sequence factory in this factory. Return 0 on failure (name already exists). |
|
Create a new state in this factory. Return 0 on failure (name already exists). |
|
Get a default parameter from this factory. Return 0 if the parameter does not exist. |
|
Get the name of this factory.
|
|
Get a sequence factory in this factory. Return 0 if the factory doesn't exist. |
|
Get a state from this factory. Return 0 if the state doesn't exist. |
|
Load this factory from a document node.
|
|
Set a default parameter on this factory. If the parameter exists it will be overwritten. |
The documentation for this struct was generated from the following file:
- tools/questmanager.h
Generated for CEL: Crystal Entity Layer by doxygen 1.4.6