TrinityCore
Loading...
Searching...
No Matches
PlayerMenu Class Reference

#include <GossipDef.h>

Public Member Functions

GossipMenuGetGossipMenu ()
 
QuestMenuGetQuestMenu ()
 
bool Empty () const
 
uint32 GetGossipOptionSender (uint32 selection) const
 
uint32 GetGossipOptionAction (uint32 selection) const
 
bool IsGossipOptionCoded (uint32 selection) const
 
AddMenuItem

Adds a localized gossip menu item from db by menu id and menu item id.

Parameters
menuIdGossip menu id.
menuItemIdGossip menu item id.
senderIdentifier of the current menu.
actionCustom action given to OnGossipHello.
 PlayerMenu (WorldSession *session)
 
 ~PlayerMenu ()
 
void ClearMenus ()
 
void SendGossipMenu (uint32 titleTextId, ObjectGuid objectGUID)
 
void SendCloseGossip ()
 
void SendPointOfInterest (uint32 poiId) const
 
void SendQuestGiverStatus (uint8 questStatus, ObjectGuid npcGUID) const
 
void SendQuestGiverQuestList (QEmote const &eEmote, const std::string &Title, ObjectGuid npcGUID)
 
void SendQuestQueryResponse (Quest const *quest) const
 
void SendQuestGiverQuestDetails (Quest const *quest, ObjectGuid npcGUID, bool activateAccept) const
 
void SendQuestGiverOfferReward (Quest const *quest, ObjectGuid npcGUID, bool autoLaunched) const
 
void SendQuestGiverRequestItems (Quest const *quest, ObjectGuid npcGUID, bool canComplete, bool closeOnCancel) const
 

Private Attributes

GossipMenu _gossipMenu
 
QuestMenu _questMenu
 
WorldSession_session
 

Detailed Description

Definition at line 256 of file GossipDef.h.

Constructor & Destructor Documentation

◆ PlayerMenu()

PlayerMenu::PlayerMenu ( WorldSession session)
explicit

Definition at line 185 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ ~PlayerMenu()

PlayerMenu::~PlayerMenu ( )

Definition at line 191 of file GossipDef.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ ClearMenus()

void PlayerMenu::ClearMenus ( )

Definition at line 196 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Empty()

bool PlayerMenu::Empty ( ) const
inline

Definition at line 265 of file GossipDef.h.

◆ GetGossipMenu()

GossipMenu & PlayerMenu::GetGossipMenu ( )
inline

Definition at line 262 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ GetGossipOptionAction()

uint32 PlayerMenu::GetGossipOptionAction ( uint32  selection) const
inline

Definition at line 269 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ GetGossipOptionSender()

uint32 PlayerMenu::GetGossipOptionSender ( uint32  selection) const
inline

Definition at line 268 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ GetQuestMenu()

QuestMenu & PlayerMenu::GetQuestMenu ( )
inline

Definition at line 263 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ IsGossipOptionCoded()

bool PlayerMenu::IsGossipOptionCoded ( uint32  selection) const
inline

Definition at line 270 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ SendCloseGossip()

void PlayerMenu::SendCloseGossip ( )

Definition at line 253 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendGossipMenu()

void PlayerMenu::SendGossipMenu ( uint32  titleTextId,
ObjectGuid  objectGUID 
)

Definition at line 202 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPointOfInterest()

void PlayerMenu::SendPointOfInterest ( uint32  poiId) const

Definition at line 261 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendQuestGiverOfferReward()

void PlayerMenu::SendQuestGiverOfferReward ( Quest const *  quest,
ObjectGuid  npcGUID,
bool  autoLaunched 
) const

Definition at line 448 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendQuestGiverQuestDetails()

void PlayerMenu::SendQuestGiverQuestDetails ( Quest const *  quest,
ObjectGuid  npcGUID,
bool  activateAccept 
) const

Definition at line 398 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendQuestGiverQuestList()

void PlayerMenu::SendQuestGiverQuestList ( QEmote const &  eEmote,
const std::string &  Title,
ObjectGuid  npcGUID 
)

Definition at line 329 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendQuestGiverRequestItems()

void PlayerMenu::SendQuestGiverRequestItems ( Quest const *  quest,
ObjectGuid  npcGUID,
bool  canComplete,
bool  closeOnCancel 
) const

Definition at line 481 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendQuestGiverStatus()

void PlayerMenu::SendQuestGiverStatus ( uint8  questStatus,
ObjectGuid  npcGUID 
) const

Definition at line 388 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendQuestQueryResponse()

void PlayerMenu::SendQuestQueryResponse ( Quest const *  quest) const

Definition at line 435 of file GossipDef.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _gossipMenu

GossipMenu PlayerMenu::_gossipMenu
private

Definition at line 290 of file GossipDef.h.

◆ _questMenu

QuestMenu PlayerMenu::_questMenu
private

Definition at line 291 of file GossipDef.h.

◆ _session

WorldSession* PlayerMenu::_session
private

Definition at line 292 of file GossipDef.h.


The documentation for this class was generated from the following files: