TrinityCore
PlayerMenu Class Reference

#include <GossipDef.h>

Public Member Functions

 PlayerMenu (PlayerMenu const &)=delete
 
 PlayerMenu (PlayerMenu &&)=delete
 
PlayerMenuoperator= (PlayerMenu const &)=delete
 
PlayerMenuoperator= (PlayerMenu &&)=delete
 
GossipMenuGetGossipMenu ()
 
QuestMenuGetQuestMenu ()
 
InteractionDataGetInteractionData ()
 
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 (QuestGiverStatus questStatus, ObjectGuid npcGUID) const
 
void SendQuestGiverQuestListMessage (Object *questgiver)
 
void SendQuestQueryResponse (Quest const *quest) const
 
void SendQuestGiverQuestDetails (Quest const *quest, ObjectGuid npcGUID, bool autoLaunched, bool displayPopup) const
 
void SendQuestGiverOfferReward (Quest const *quest, ObjectGuid npcGUID, bool autoLaunched) const
 
void SendQuestGiverRequestItems (Quest const *quest, ObjectGuid npcGUID, bool canComplete, bool autoLaunched) const
 

Private Attributes

GossipMenu _gossipMenu
 
QuestMenu _questMenu
 
WorldSession_session
 
InteractionData _interactionData
 

Detailed Description

Definition at line 237 of file GossipDef.h.

Constructor & Destructor Documentation

◆ PlayerMenu() [1/3]

PlayerMenu::PlayerMenu ( WorldSession session)
explicit

Definition at line 226 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ PlayerMenu() [2/3]

PlayerMenu::PlayerMenu ( PlayerMenu const &  )
delete

◆ PlayerMenu() [3/3]

PlayerMenu::PlayerMenu ( PlayerMenu &&  )
delete

◆ ~PlayerMenu()

PlayerMenu::~PlayerMenu ( )
default

Member Function Documentation

◆ ClearMenus()

void PlayerMenu::ClearMenus ( )

Definition at line 234 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ Empty()

bool PlayerMenu::Empty ( ) const
inline

Definition at line 251 of file GossipDef.h.

◆ GetGossipMenu()

GossipMenu & PlayerMenu::GetGossipMenu ( )
inline

Definition at line 247 of file GossipDef.h.

◆ GetGossipOptionAction()

uint32 PlayerMenu::GetGossipOptionAction ( uint32  selection) const
inline

Definition at line 255 of file GossipDef.h.

◆ GetGossipOptionSender()

uint32 PlayerMenu::GetGossipOptionSender ( uint32  selection) const
inline

Definition at line 254 of file GossipDef.h.

◆ GetInteractionData()

InteractionData & PlayerMenu::GetInteractionData ( )
inline

Definition at line 249 of file GossipDef.h.

◆ GetQuestMenu()

QuestMenu & PlayerMenu::GetQuestMenu ( )
inline

Definition at line 248 of file GossipDef.h.

◆ IsGossipOptionCoded()

bool PlayerMenu::IsGossipOptionCoded ( uint32  selection) const
inline

Definition at line 256 of file GossipDef.h.

◆ operator=() [1/2]

PlayerMenu & PlayerMenu::operator= ( PlayerMenu &&  )
delete

◆ operator=() [2/2]

PlayerMenu & PlayerMenu::operator= ( PlayerMenu const &  )
delete

◆ SendCloseGossip()

void PlayerMenu::SendCloseGossip ( )

Definition at line 305 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendGossipMenu()

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

Definition at line 240 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendPointOfInterest()

void PlayerMenu::SendPointOfInterest ( uint32  poiId) const

Definition at line 313 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestGiverOfferReward()

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

Definition at line 536 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  autoLaunched,
bool  displayPopup 
) const

Definition at line 439 of file GossipDef.cpp.

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

◆ SendQuestGiverQuestListMessage()

void PlayerMenu::SendQuestGiverQuestListMessage ( Object questgiver)

Definition at line 380 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestGiverRequestItems()

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

Definition at line 603 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestGiverStatus()

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

Definition at line 429 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestQueryResponse()

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

Definition at line 523 of file GossipDef.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _gossipMenu

GossipMenu PlayerMenu::_gossipMenu
private

Definition at line 276 of file GossipDef.h.

◆ _interactionData

InteractionData PlayerMenu::_interactionData
private

Definition at line 279 of file GossipDef.h.

◆ _questMenu

QuestMenu PlayerMenu::_questMenu
private

Definition at line 277 of file GossipDef.h.

◆ _session

WorldSession* PlayerMenu::_session
private

Definition at line 278 of file GossipDef.h.


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