TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GossipDef.h File Reference
#include "Common.h"
#include "ObjectGuid.h"
#include "QuestDef.h"
#include "NPCHandler.h"
+ Include dependency graph for GossipDef.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GossipMenuItem
 
struct  GossipMenuItemData
 
struct  QuestMenuItem
 
class  GossipMenu
 
class  QuestMenu
 
class  PlayerMenu
 

Macros

#define GOSSIP_MAX_MENU_ITEMS   32
 
#define DEFAULT_GOSSIP_MESSAGE   0xffffff
 

Typedefs

typedef std::map< uint32,
GossipMenuItem
GossipMenuItemContainer
 
typedef std::map< uint32,
GossipMenuItemData
GossipMenuItemDataContainer
 
typedef std::vector
< QuestMenuItem
QuestMenuItemList
 

Enumerations

enum  Gossip_Option {
  GOSSIP_OPTION_NONE = 0, GOSSIP_OPTION_GOSSIP = 1, GOSSIP_OPTION_QUESTGIVER = 2, GOSSIP_OPTION_VENDOR = 3,
  GOSSIP_OPTION_TAXIVENDOR = 4, GOSSIP_OPTION_TRAINER = 5, GOSSIP_OPTION_SPIRITHEALER = 6, GOSSIP_OPTION_SPIRITGUIDE = 7,
  GOSSIP_OPTION_INNKEEPER = 8, GOSSIP_OPTION_BANKER = 9, GOSSIP_OPTION_PETITIONER = 10, GOSSIP_OPTION_TABARDDESIGNER = 11,
  GOSSIP_OPTION_BATTLEFIELD = 12, GOSSIP_OPTION_AUCTIONEER = 13, GOSSIP_OPTION_STABLEPET = 14, GOSSIP_OPTION_ARMORER = 15,
  GOSSIP_OPTION_UNLEARNTALENTS = 16, GOSSIP_OPTION_UNLEARNPETTALENTS = 17, GOSSIP_OPTION_LEARNDUALSPEC = 18, GOSSIP_OPTION_OUTDOORPVP = 19,
  GOSSIP_OPTION_MAX
}
 
enum  GossipOptionIcon {
  GOSSIP_ICON_CHAT = 0, GOSSIP_ICON_VENDOR = 1, GOSSIP_ICON_TAXI = 2, GOSSIP_ICON_TRAINER = 3,
  GOSSIP_ICON_INTERACT_1 = 4, GOSSIP_ICON_INTERACT_2 = 5, GOSSIP_ICON_MONEY_BAG = 6, GOSSIP_ICON_TALK = 7,
  GOSSIP_ICON_TABARD = 8, GOSSIP_ICON_BATTLE = 9, GOSSIP_ICON_DOT = 10, GOSSIP_ICON_CHAT_11 = 11,
  GOSSIP_ICON_CHAT_12 = 12, GOSSIP_ICON_CHAT_13 = 13, GOSSIP_ICON_UNK_14 = 14, GOSSIP_ICON_UNK_15 = 15,
  GOSSIP_ICON_CHAT_16 = 16, GOSSIP_ICON_CHAT_17 = 17, GOSSIP_ICON_CHAT_18 = 18, GOSSIP_ICON_CHAT_19 = 19,
  GOSSIP_ICON_CHAT_20 = 20, GOSSIP_ICON_CHAT_21 = 21, GOSSIP_ICON_MAX
}
 
enum  Poi_Icon {
  ICON_POI_BLANK = 0, ICON_POI_GREY_AV_MINE = 1, ICON_POI_RED_AV_MINE = 2, ICON_POI_BLUE_AV_MINE = 3,
  ICON_POI_BWTOMB = 4, ICON_POI_SMALL_HOUSE = 5, ICON_POI_GREYTOWER = 6, ICON_POI_REDFLAG = 7,
  ICON_POI_TOMBSTONE = 8, ICON_POI_BWTOWER = 9, ICON_POI_REDTOWER = 10, ICON_POI_BLUETOWER = 11,
  ICON_POI_RWTOWER = 12, ICON_POI_REDTOMB = 13, ICON_POI_RWTOMB = 14, ICON_POI_BLUETOMB = 15,
  ICON_POI_16 = 16, ICON_POI_17 = 17, ICON_POI_18 = 18, ICON_POI_19 = 19,
  ICON_POI_20 = 20, ICON_POI_GREYLOGS = 21, ICON_POI_BWLOGS = 22, ICON_POI_BLUELOGS = 23,
  ICON_POI_RWLOGS = 24, ICON_POI_REDLOGS = 25, ICON_POI_26 = 26, ICON_POI_27 = 27,
  ICON_POI_28 = 28, ICON_POI_29 = 29, ICON_POI_30 = 30, ICON_POI_GREYHOUSE = 31,
  ICON_POI_BWHOUSE = 32, ICON_POI_BLUEHOUSE = 33, ICON_POI_RWHOUSE = 34, ICON_POI_REDHOUSE = 35,
  ICON_POI_GREYHORSE = 36, ICON_POI_BWHORSE = 37, ICON_POI_BLUEHORSE = 38, ICON_POI_RWHORSE = 39,
  ICON_POI_REDHORSE = 40
}
 

Macro Definition Documentation

#define DEFAULT_GOSSIP_MESSAGE   0xffffff
#define GOSSIP_MAX_MENU_ITEMS   32

Typedef Documentation

typedef std::vector<QuestMenuItem> QuestMenuItemList

Enumeration Type Documentation

Enumerator
GOSSIP_OPTION_NONE 
GOSSIP_OPTION_GOSSIP 
GOSSIP_OPTION_QUESTGIVER 
GOSSIP_OPTION_VENDOR 
GOSSIP_OPTION_TAXIVENDOR 
GOSSIP_OPTION_TRAINER 
GOSSIP_OPTION_SPIRITHEALER 
GOSSIP_OPTION_SPIRITGUIDE 
GOSSIP_OPTION_INNKEEPER 
GOSSIP_OPTION_BANKER 
GOSSIP_OPTION_PETITIONER 
GOSSIP_OPTION_TABARDDESIGNER 
GOSSIP_OPTION_BATTLEFIELD 
GOSSIP_OPTION_AUCTIONEER 
GOSSIP_OPTION_STABLEPET 
GOSSIP_OPTION_ARMORER 
GOSSIP_OPTION_UNLEARNTALENTS 
GOSSIP_OPTION_UNLEARNPETTALENTS 
GOSSIP_OPTION_LEARNDUALSPEC 
GOSSIP_OPTION_OUTDOORPVP 
GOSSIP_OPTION_MAX 
33 {
34  GOSSIP_OPTION_NONE = 0, //UNIT_NPC_FLAG_NONE (0)
35  GOSSIP_OPTION_GOSSIP = 1, //UNIT_NPC_FLAG_GOSSIP (1)
36  GOSSIP_OPTION_QUESTGIVER = 2, //UNIT_NPC_FLAG_QUESTGIVER (2)
37  GOSSIP_OPTION_VENDOR = 3, //UNIT_NPC_FLAG_VENDOR (128)
38  GOSSIP_OPTION_TAXIVENDOR = 4, //UNIT_NPC_FLAG_TAXIVENDOR (8192)
39  GOSSIP_OPTION_TRAINER = 5, //UNIT_NPC_FLAG_TRAINER (16)
40  GOSSIP_OPTION_SPIRITHEALER = 6, //UNIT_NPC_FLAG_SPIRITHEALER (16384)
41  GOSSIP_OPTION_SPIRITGUIDE = 7, //UNIT_NPC_FLAG_SPIRITGUIDE (32768)
42  GOSSIP_OPTION_INNKEEPER = 8, //UNIT_NPC_FLAG_INNKEEPER (65536)
43  GOSSIP_OPTION_BANKER = 9, //UNIT_NPC_FLAG_BANKER (131072)
44  GOSSIP_OPTION_PETITIONER = 10, //UNIT_NPC_FLAG_PETITIONER (262144)
45  GOSSIP_OPTION_TABARDDESIGNER = 11, //UNIT_NPC_FLAG_TABARDDESIGNER (524288)
46  GOSSIP_OPTION_BATTLEFIELD = 12, //UNIT_NPC_FLAG_BATTLEFIELDPERSON (1048576)
47  GOSSIP_OPTION_AUCTIONEER = 13, //UNIT_NPC_FLAG_AUCTIONEER (2097152)
48  GOSSIP_OPTION_STABLEPET = 14, //UNIT_NPC_FLAG_STABLE (4194304)
49  GOSSIP_OPTION_ARMORER = 15, //UNIT_NPC_FLAG_ARMORER (4096)
50  GOSSIP_OPTION_UNLEARNTALENTS = 16, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
51  GOSSIP_OPTION_UNLEARNPETTALENTS = 17, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
52  GOSSIP_OPTION_LEARNDUALSPEC = 18, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER)
53  GOSSIP_OPTION_OUTDOORPVP = 19, //added by code (option for outdoor pvp creatures)
55 };
Definition: GossipDef.h:42
Definition: GossipDef.h:45
Definition: GossipDef.h:54
Definition: GossipDef.h:36
Definition: GossipDef.h:52
Definition: GossipDef.h:40
Definition: GossipDef.h:34
Definition: GossipDef.h:38
Definition: GossipDef.h:35
Definition: GossipDef.h:48
Definition: GossipDef.h:43
Definition: GossipDef.h:50
Definition: GossipDef.h:46
Definition: GossipDef.h:53
Definition: GossipDef.h:39
Definition: GossipDef.h:41
Definition: GossipDef.h:37
Definition: GossipDef.h:47
Definition: GossipDef.h:44
Definition: GossipDef.h:51
Definition: GossipDef.h:49
Enumerator
GOSSIP_ICON_CHAT 
GOSSIP_ICON_VENDOR 
GOSSIP_ICON_TAXI 
GOSSIP_ICON_TRAINER 
GOSSIP_ICON_INTERACT_1 
GOSSIP_ICON_INTERACT_2 
GOSSIP_ICON_MONEY_BAG 
GOSSIP_ICON_TALK 
GOSSIP_ICON_TABARD 
GOSSIP_ICON_BATTLE 
GOSSIP_ICON_DOT 
GOSSIP_ICON_CHAT_11 
GOSSIP_ICON_CHAT_12 
GOSSIP_ICON_CHAT_13 
GOSSIP_ICON_UNK_14 
GOSSIP_ICON_UNK_15 
GOSSIP_ICON_CHAT_16 
GOSSIP_ICON_CHAT_17 
GOSSIP_ICON_CHAT_18 
GOSSIP_ICON_CHAT_19 
GOSSIP_ICON_CHAT_20 
GOSSIP_ICON_CHAT_21 
GOSSIP_ICON_MAX 
58 {
59  GOSSIP_ICON_CHAT = 0, // white chat bubble
60  GOSSIP_ICON_VENDOR = 1, // brown bag
61  GOSSIP_ICON_TAXI = 2, // flightmarker (paperplane)
62  GOSSIP_ICON_TRAINER = 3, // brown book (trainer)
63  GOSSIP_ICON_INTERACT_1 = 4, // golden interaction wheel
64  GOSSIP_ICON_INTERACT_2 = 5, // golden interaction wheel
65  GOSSIP_ICON_MONEY_BAG = 6, // brown bag (with gold coin in lower corner)
66  GOSSIP_ICON_TALK = 7, // white chat bubble (with "..." inside)
67  GOSSIP_ICON_TABARD = 8, // white tabard
68  GOSSIP_ICON_BATTLE = 9, // two crossed swords
69  GOSSIP_ICON_DOT = 10, // yellow dot/point
70  GOSSIP_ICON_CHAT_11 = 11, // white chat bubble
71  GOSSIP_ICON_CHAT_12 = 12, // white chat bubble
72  GOSSIP_ICON_CHAT_13 = 13, // white chat bubble
73  GOSSIP_ICON_UNK_14 = 14, // INVALID - DO NOT USE
74  GOSSIP_ICON_UNK_15 = 15, // INVALID - DO NOT USE
75  GOSSIP_ICON_CHAT_16 = 16, // white chat bubble
76  GOSSIP_ICON_CHAT_17 = 17, // white chat bubble
77  GOSSIP_ICON_CHAT_18 = 18, // white chat bubble
78  GOSSIP_ICON_CHAT_19 = 19, // white chat bubble
79  GOSSIP_ICON_CHAT_20 = 20, // white chat bubble
80  GOSSIP_ICON_CHAT_21 = 21, // transmogrifier?
82 };
Definition: GossipDef.h:70
Definition: GossipDef.h:68
Definition: GossipDef.h:69
Definition: GossipDef.h:62
Definition: GossipDef.h:80
Definition: GossipDef.h:74
Definition: GossipDef.h:71
Definition: GossipDef.h:81
Definition: GossipDef.h:63
Definition: GossipDef.h:75
Definition: GossipDef.h:64
Definition: GossipDef.h:76
Definition: GossipDef.h:78
Definition: GossipDef.h:65
Definition: GossipDef.h:66
Definition: GossipDef.h:60
Definition: GossipDef.h:67
Definition: GossipDef.h:72
Definition: GossipDef.h:59
Definition: GossipDef.h:77
Definition: GossipDef.h:73
Definition: GossipDef.h:61
Definition: GossipDef.h:79
enum Poi_Icon
Enumerator
ICON_POI_BLANK 
ICON_POI_GREY_AV_MINE 
ICON_POI_RED_AV_MINE 
ICON_POI_BLUE_AV_MINE 
ICON_POI_BWTOMB 
ICON_POI_SMALL_HOUSE 
ICON_POI_GREYTOWER 
ICON_POI_REDFLAG 
ICON_POI_TOMBSTONE 
ICON_POI_BWTOWER 
ICON_POI_REDTOWER 
ICON_POI_BLUETOWER 
ICON_POI_RWTOWER 
ICON_POI_REDTOMB 
ICON_POI_RWTOMB 
ICON_POI_BLUETOMB 
ICON_POI_16 
ICON_POI_17 
ICON_POI_18 
ICON_POI_19 
ICON_POI_20 
ICON_POI_GREYLOGS 
ICON_POI_BWLOGS 
ICON_POI_BLUELOGS 
ICON_POI_RWLOGS 
ICON_POI_REDLOGS 
ICON_POI_26 
ICON_POI_27 
ICON_POI_28 
ICON_POI_29 
ICON_POI_30 
ICON_POI_GREYHOUSE 
ICON_POI_BWHOUSE 
ICON_POI_BLUEHOUSE 
ICON_POI_RWHOUSE 
ICON_POI_REDHOUSE 
ICON_POI_GREYHORSE 
ICON_POI_BWHORSE 
ICON_POI_BLUEHORSE 
ICON_POI_RWHORSE 
ICON_POI_REDHORSE 
86 {
87  ICON_POI_BLANK = 0, // Blank (not visible)
88  ICON_POI_GREY_AV_MINE = 1, // Grey mine lorry
89  ICON_POI_RED_AV_MINE = 2, // Red mine lorry
90  ICON_POI_BLUE_AV_MINE = 3, // Blue mine lorry
91  ICON_POI_BWTOMB = 4, // Blue and White Tomb Stone
92  ICON_POI_SMALL_HOUSE = 5, // Small house
93  ICON_POI_GREYTOWER = 6, // Grey Tower
94  ICON_POI_REDFLAG = 7, // Red Flag w/Yellow !
95  ICON_POI_TOMBSTONE = 8, // Normal tomb stone (brown)
96  ICON_POI_BWTOWER = 9, // Blue and White Tower
97  ICON_POI_REDTOWER = 10, // Red Tower
98  ICON_POI_BLUETOWER = 11, // Blue Tower
99  ICON_POI_RWTOWER = 12, // Red and White Tower
100  ICON_POI_REDTOMB = 13, // Red Tomb Stone
101  ICON_POI_RWTOMB = 14, // Red and White Tomb Stone
102  ICON_POI_BLUETOMB = 15, // Blue Tomb Stone
103  ICON_POI_16 = 16, // Grey ?
104  ICON_POI_17 = 17, // Blue/White ?
105  ICON_POI_18 = 18, // Blue ?
106  ICON_POI_19 = 19, // Red and White ?
107  ICON_POI_20 = 20, // Red ?
108  ICON_POI_GREYLOGS = 21, // Grey Wood Logs
109  ICON_POI_BWLOGS = 22, // Blue and White Wood Logs
110  ICON_POI_BLUELOGS = 23, // Blue Wood Logs
111  ICON_POI_RWLOGS = 24, // Red and White Wood Logs
112  ICON_POI_REDLOGS = 25, // Red Wood Logs
113  ICON_POI_26 = 26, // Grey ?
114  ICON_POI_27 = 27, // Blue and White ?
115  ICON_POI_28 = 28, // Blue ?
116  ICON_POI_29 = 29, // Red and White ?
117  ICON_POI_30 = 30, // Red ?
118  ICON_POI_GREYHOUSE = 31, // Grey House
119  ICON_POI_BWHOUSE = 32, // Blue and White House
120  ICON_POI_BLUEHOUSE = 33, // Blue House
121  ICON_POI_RWHOUSE = 34, // Red and White House
122  ICON_POI_REDHOUSE = 35, // Red House
123  ICON_POI_GREYHORSE = 36, // Grey Horse
124  ICON_POI_BWHORSE = 37, // Blue and White Horse
125  ICON_POI_BLUEHORSE = 38, // Blue Horse
126  ICON_POI_RWHORSE = 39, // Red and White Horse
127  ICON_POI_REDHORSE = 40 // Red Horse
128 };
Definition: GossipDef.h:96
Definition: GossipDef.h:88
Definition: GossipDef.h:101
Definition: GossipDef.h:121
Definition: GossipDef.h:98
Definition: GossipDef.h:127
Definition: GossipDef.h:104
Definition: GossipDef.h:126
Definition: GossipDef.h:93
Definition: GossipDef.h:95
Definition: GossipDef.h:114
Definition: GossipDef.h:112
Definition: GossipDef.h:113
Definition: GossipDef.h:92
Definition: GossipDef.h:94
Definition: GossipDef.h:102
Definition: GossipDef.h:115
Definition: GossipDef.h:89
Definition: GossipDef.h:103
Definition: GossipDef.h:117
Definition: GossipDef.h:125
Definition: GossipDef.h:100
Definition: GossipDef.h:118
Definition: GossipDef.h:119
Definition: GossipDef.h:110
Definition: GossipDef.h:108
Definition: GossipDef.h:99
Definition: GossipDef.h:123
Definition: GossipDef.h:116
Definition: GossipDef.h:87
Definition: GossipDef.h:120
Definition: GossipDef.h:90
Definition: GossipDef.h:105
Definition: GossipDef.h:122
Definition: GossipDef.h:109
Definition: GossipDef.h:107
Definition: GossipDef.h:91
Definition: GossipDef.h:111
Definition: GossipDef.h:106
Definition: GossipDef.h:124
Definition: GossipDef.h:97