This class handles quest management for the player, tracking who has what quests assigned, etc.
More...
|
void | Assign (psQuest *quest, Client *who, gemNPC *assigner, csTicks timeDelay=0) |
|
bool | Complete (psQuest *quest, Client *who, csTicks timeDelay=0) |
|
bool | GiveRewardToPlayer (Client *who, QuestRewardItem &reward) |
|
bool | Initialize () |
|
const char * | LastError () |
|
bool | LoadQuestScript (int id) |
|
void | OfferRewardsToPlayer (Client *who, csArray< QuestRewardItem > &offer, csTicks &timeDelay) |
|
int | ParseCustomScript (int id, const csString ¤t_npc, const char *script) |
| Parase a new custom script. More...
|
|
int | ParseQuestScript (int id, const char *script) |
| Parase a new quest script. More...
|
|
| QuestManager (CacheManager *cachemanager) |
|
bool | Uncomplete (psQuest *quest, Client *who, csTicks timeDelay=0) |
| Discards the requested step this is used by dictionary. More...
|
|
virtual | ~QuestManager () |
|
void | HandleMessage (MsgEntry *msg, Client *client) |
| Transfers the message to the manager specific function. More...
|
|
void | Subscribe (FunctionPointer fpt, msgtype type, uint32_t flags=0x01) |
| Subscribes this manager to a specific message type with a custom callback. More...
|
|
bool | Unsubscribe (msgtype type) |
| Unsubscribes this manager from a specific message type. More...
|
|
bool | Unsubscribe (FunctionPointer handler, msgtype type) |
| Unsubscribes a specific handler from a specific message type. More...
|
|
bool | UnsubscribeAll () |
| Unsubscribes this manager from all message types. More...
|
|
virtual | ~MessageManager () |
| Unsubscribes all messages then destroys this object. More...
|
|
csArray< csString > | DecodeCommandArea (Client *client, csString target) |
| Decodes an area: expression. More...
|
|
gemObject * | FindObjectByString (const csString &str, gemActor *me) const |
| Find the object we are referring to in str. More...
|
|
Client * | FindPlayerClient (const char *name) |
| Finds Client* of character with given name. More...
|
|
virtual bool | Verify (MsgEntry *pMsg, unsigned int flags, Client *&client) |
|
|
NpcResponse * | AddResponse (const csString ¤t_npc, const char *response_text, int &last_response_id, psQuest *quest, csString &him, csString &her, csString &it, csString &them, csString &file_path) |
| Adds a NpcResponse to the dict (global var) More...
|
|
bool | AddTrigger (const csString ¤t_npc, const char *trigger, int prior_response_id, NpcResponse *trig_response, psQuest *quest, const psString &postfix) |
| Adds a Trigger for a NpcResponse to the dict (global var) More...
|
|
void | AutocompleteQuestName (csString &questname, psQuest *mainQuest) |
| Checks if the quest name is existant, if it isn't it attemps to complete it with the name of the passed quest but only if the autocompleted version is found. More...
|
|
bool | BuildTriggerList (csString &block, csStringArray &list) const |
|
void | CutOutParenthesis (csString &response, csString &within, char start_char, char end_char) const |
|
void | GetNextScriptLine (psString &scr, csString &block, size_t &start, int &line_number) |
|
int | GetNPCFromBlock (WordArray words, csString ¤t_npc) |
|
bool | GetResponseText (csString &block, csString &response, csString &file_path, csString &him, csString &her, csString &it, csString &them) const |
|
bool | HandlePlayerAction (csString &block, size_t &which_trigger, csString ¤t_npc, csStringArray &pending_triggers) |
|
void | HandleQuestInfo (MsgEntry *pMsg, Client *client) |
|
void | HandleQuestReward (MsgEntry *pMsg, Client *client) |
|
bool | HandleRequireCommand (csString &block, csString &response_requireop, psQuest *mainQuest) |
| Parses a require command. More...
|
|
bool | HandleScriptCommand (csString &block, csString &response_requireop, csString &substep_requireop, NpcResponse *last_response, psQuest *mainQuest, bool &quest_assigned_already, psQuest *quest) |
|
bool | LoadQuestScripts () |
| Load all scripts from db. More...
|
|
void | MergeTriggerMenus (NpcDialogMenu *pending_menu, const csString ¤t_npc) |
|
bool | ParseItem (const char *text, psStringArray &xmlItems, psMoney &money) |
|
bool | ParseItemList (const csString &input, csString &parsedItemList) |
|
bool | ParseQuestScriptMenu (const csString &block, const csStringArray &triggers, psQuest *quest, NpcDialogMenu *menu) const |
| Parse QuestScript entries from a string. More...
|
|
csString | ParseRequireCommand (csString &block, bool &result, psQuest *mainQuest) |
| Parses a require command inner part. More...
|
|
int | PreParseQuestScript (psQuest *mainQuest, const char *script) |
| Does a first parsing of the script. More...
|
|
bool | PrependPrerequisites (csString &substep_requireop, csString &response_requireop, bool quest_assigned_already, NpcResponse *last_response, psQuest *mainQuest) |
|
This class handles quest management for the player, tracking who has what quests assigned, etc.
Definition at line 52 of file questmanager.h.