Planeshift
|
Holds the trigger menu, if it exists, for a given location in a dialog. More...
#include <dictionary.h>
Classes | |
struct | DialogTrigger |
Public Member Functions | |
void | Add (NpcDialogMenu *add) |
Adds a the triggers of the NpcDialogMenu to the array of triggers. | |
void | AddTrigger (const csString &menuText, const csString &trigger, psQuest *quest, psQuestPrereqOp *script=NULL) |
Adds a trigger to the menu. | |
void | DeleteAllMenusOfQuest (psQuest *quest) |
Remove the specified quest's menus. | |
NpcDialogMenu () | |
Default construtor. | |
void | SetPrerequisiteScript (psQuestPrereqOp *script) |
sets the prerequisite script for all DialogTriggers. | |
void | ShowMenu (Client *client, csTicks delay, gemNPC *npc) |
display the menu on the client. | |
Public Attributes | |
csArray< DialogTrigger > | triggers |
list of menu items |
Holds the trigger menu, if it exists, for a given location in a dialog.
Definition at line 325 of file dictionary.h.
NpcDialogMenu::NpcDialogMenu | ( | ) |
Default construtor.
void NpcDialogMenu::Add | ( | NpcDialogMenu * | add | ) |
Adds a the triggers of the NpcDialogMenu to the array of triggers.
add | contains the triggers to add. |
void NpcDialogMenu::AddTrigger | ( | const csString & | menuText, |
const csString & | trigger, | ||
psQuest * | quest, | ||
psQuestPrereqOp * | script = NULL |
||
) |
Adds a trigger to the menu.
menuText | is the text to display in the menu |
trigger | is the text that the player needs to enter to trigger the menu entry |
quest | that the trigger refers to |
script | are the quest prerequisites for ??? |
void NpcDialogMenu::DeleteAllMenusOfQuest | ( | psQuest * | quest | ) |
Remove the specified quest's menus.
quest | pointer to the quest to remove |
void NpcDialogMenu::SetPrerequisiteScript | ( | psQuestPrereqOp * | script | ) |
sets the prerequisite script for all DialogTriggers.
The complete triggers array is iterated through and all structs have the prerequisite set to the script.
script | the prerequisites that are to be set. |
display the menu on the client.
client | to display the menu on |
npc | is the npc the dialog is conducted with |
list of menu items
Definition at line 346 of file dictionary.h.