![]() |
Public API Reference |
This property class represents a quest. More...
#include <propclass/quest.h>
Public Member Functions | |
| virtual iQuest * | GetQuest () const =0 |
| Get the quest represented by this property class. | |
| virtual const char * | GetQuestName () const =0 |
| Get the name of the running quest. | |
| virtual bool | NewQuest (const char *name, celParams ¶ms)=0 |
| Initialize this quest with a new named quest. | |
| virtual void | StopQuest ()=0 |
| Stop the current quest. | |
This property class represents a quest.
It uses the quest manager to manage quests. Note that this property class will automatically load the quest manager if it is missing.
This property class supports the following actions (add prefix 'cel.quest.action.' if you want to access this action through a message):
This property class supports the following properties:
| virtual iQuest* iPcQuest::GetQuest | ( | ) | const [pure virtual] |
Get the quest represented by this property class.
| virtual const char* iPcQuest::GetQuestName | ( | ) | const [pure virtual] |
Get the name of the running quest.
| virtual bool iPcQuest::NewQuest | ( | const char * | name, |
| celParams & | params | ||
| ) | [pure virtual] |
Initialize this quest with a new named quest.
The quest manager will be used to find a quest factory that has the given name. Then that quest factory will be used to make a new quest instance that is then managed by this property class. If there is already a quest then that quest will be stopped.
| virtual void iPcQuest::StopQuest | ( | ) | [pure virtual] |
Stop the current quest.
Does nothing if there is no quest.