![]() |
Public API 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 celParams ¶ms)=0 |
| Instantiate a quest from this factory. | |
| virtual iCelSequenceFactory * | 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 iCelSequenceFactory * | 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. | |
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.
Definition at line 150 of file questmanager.h.
| virtual void iQuestFactory::ClearDefaultParameters | ( | ) | [pure virtual] |
Clear all default parameters on this factory.
| virtual csPtr<iQuest> iQuestFactory::CreateQuest | ( | const celParams & | params | ) | [pure virtual] |
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, ...).
| params | are the parameters with which this quest is instantiated. |
| virtual iCelSequenceFactory* iQuestFactory::CreateSequence | ( | const char * | name | ) | [pure virtual] |
Create a new sequence factory in this factory.
Return 0 on failure (name already exists).
| virtual iQuestStateFactory* iQuestFactory::CreateState | ( | const char * | name | ) | [pure virtual] |
Create a new state in this factory.
Return 0 on failure (name already exists).
| virtual const char* iQuestFactory::GetDefaultParameter | ( | const char * | name | ) | const [pure virtual] |
Get a default parameter from this factory.
Return 0 if the parameter does not exist.
| virtual const char* iQuestFactory::GetName | ( | ) | const [pure virtual] |
Get the name of this factory.
| virtual iCelSequenceFactory* iQuestFactory::GetSequence | ( | const char * | name | ) | [pure virtual] |
Get a sequence factory in this factory.
Return 0 if the factory doesn't exist.
| virtual iQuestStateFactory* iQuestFactory::GetState | ( | const char * | name | ) | [pure virtual] |
Get a state from this factory.
Return 0 if the state doesn't exist.
| virtual bool iQuestFactory::Load | ( | iDocumentNode * | node | ) | [pure virtual] |
Load this factory from a document node.
| node | is the <quest> node. |
| virtual void iQuestFactory::SetDefaultParameter | ( | const char * | name, |
| const char * | value | ||
| ) | [pure virtual] |
Set a default parameter on this factory.
If the parameter exists it will be overwritten.