19 #ifndef TRINITYCORE_GOSSIP_H
20 #define TRINITYCORE_GOSSIP_H
29 #define GOSSIP_MAX_MENU_ITEMS 32
30 #define DEFAULT_GOSSIP_MESSAGE 0xffffff
167 void AddMenuItem(
int32 menuItemId,
uint8 icon, std::string
const& message,
uint32 sender,
uint32 action, std::string
const& boxMessage,
uint32 boxMoney,
bool coded =
false);
177 void AddGossipMenuItemData(
uint32 menuItemId,
uint32 gossipActionMenuId,
uint32 gossipActionPoi);
180 bool Empty()
const {
return _menuItems.empty(); }
184 GossipMenuItemContainer::const_iterator itr = _menuItems.find(
id);
185 if (itr != _menuItems.end())
193 GossipMenuItemDataContainer::const_iterator itr = _menuItemData.find(indexId);
194 if (itr != _menuItemData.end())
202 bool IsMenuItemCoded(
uint32 menuItemId)
const;
228 bool Empty()
const {
return _questMenuItems.empty(); }
229 bool HasItem(
uint32 questId)
const;
245 bool Empty()
const {
return _gossipMenu.Empty() && _questMenu.Empty(); }
253 void SendCloseGossip();
254 void SendPointOfInterest(
uint32 poiId)
const;
261 void SendQuestGiverQuestList(
ObjectGuid npcGUID);
263 void SendQuestQueryResponse(
Quest const* quest)
const;
264 void SendQuestGiverQuestDetails(
Quest const* quest,
ObjectGuid npcGUID,
bool activateAccept)
const;
266 void SendQuestGiverOfferReward(
Quest const* quest,
ObjectGuid npcGUID,
bool enableNext)
const;
267 void SendQuestGiverRequestItems(
Quest const* quest,
ObjectGuid npcGUID,
bool canComplete,
bool closeOnCancel)
const;
269 static void AddQuestLevelToTitle(std::string &title,
int32 level);
Definition: GossipDef.h:42
Definition: GossipDef.h:96
Definition: GossipDef.h:88
Definition: GossipDef.h:70
Definition: GossipDef.h:45
Definition: GossipDef.h:101
Definition: GossipDef.h:121
Definition: GossipDef.h:54
Definition: GossipDef.h:36
Definition: GossipDef.h:68
std::map< uint32, GossipMenuItem > GossipMenuItemContainer
Definition: GossipDef.h:142
Definition: GossipDef.h:98
Definition: QuestDef.h:279
Definition: GossipDef.h:127
Definition: GossipDef.h:104
Definition: GossipDef.h:69
Definition: GossipDef.h:62
Definition: GossipDef.h:126
Definition: GossipDef.h:93
Definition: GossipDef.h:52
Definition: GossipDef.h:95
Definition: GossipDef.h:114
Definition: GossipDef.h:112
Poi_Icon
Definition: GossipDef.h:85
Definition: GossipDef.h:80
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: GossipDef.h:74
Definition: GossipDef.h:113
Definition: GossipDef.h:71
Definition: GossipDef.h:92
Definition: GossipDef.h:81
Definition: GossipDef.h:63
Definition: GossipDef.h:94
Definition: GossipDef.h:75
Definition: GossipDef.h:102
Definition: GossipDef.h:115
Definition: GossipDef.h:89
Definition: GossipDef.h:103
Definition: GossipDef.h:40
Definition: GossipDef.h:64
Definition: GossipDef.h:76
Definition: GossipDef.h:117
Definition: GossipDef.h:125
Definition: GossipDef.h:34
Definition: GossipDef.h:38
Definition: GossipDef.h:78
Definition: GossipDef.h:100
std::vector< QuestMenuItem > QuestMenuItemList
Definition: GossipDef.h:159
Definition: GossipDef.h:118
Definition: GossipDef.h:119
Definition: GossipDef.h:65
LocaleConstant
Definition: Common.h:115
Definition: GossipDef.h:66
Definition: GossipDef.h:60
Definition: GossipDef.h:110
Definition: GossipDef.h:35
Definition: GossipDef.h:48
Definition: GossipDef.h:43
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Definition: GossipDef.h:67
Definition: GossipDef.h:50
uint16_t uint16
Definition: Define.h:151
Definition: GossipDef.h:108
Definition: GossipDef.h:99
Definition: GossipDef.h:46
Gossip_Option
Definition: GossipDef.h:32
Definition: GossipDef.h:123
Definition: GossipDef.h:116
Definition: GossipDef.h:72
Definition: GossipDef.h:53
Definition: GossipDef.h:39
uint8_t uint8
Definition: g3dmath.h:164
Definition: GossipDef.h:87
Definition: GossipDef.h:41
Definition: GossipDef.h:120
Definition: GossipDef.h:90
Definition: GossipDef.h:59
#define TC_GAME_API
Definition: Define.h:134
uint8_t uint8
Definition: Define.h:152
Definition: GossipDef.h:105
Definition: GossipDef.h:37
Definition: GossipDef.h:122
Player session in the World.
Definition: WorldSession.h:882
Definition: GossipDef.h:47
Definition: ObjectGuid.h:189
uint32_t uint32
Definition: g3dmath.h:168
Definition: GossipDef.h:77
Definition: GossipDef.h:109
Definition: GossipDef.h:107
Definition: GossipDef.h:44
Definition: GossipDef.h:91
Definition: GossipDef.h:51
Definition: GossipDef.h:111
Definition: GossipDef.h:73
Definition: GossipDef.h:49
Definition: GossipDef.h:61
Definition: GossipDef.h:106
Definition: GossipDef.h:124
Definition: GossipDef.h:97
std::map< uint32, GossipMenuItemData > GossipMenuItemDataContainer
Definition: GossipDef.h:151
Definition: GossipDef.h:79
GossipOptionIcon
Definition: GossipDef.h:57