TrinityCore
Loading...
Searching...
No Matches
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)
 
void SendQuestGiverOfferReward (Quest const *quest, ObjectGuid npcGUID, bool autoLaunched)
 
void SendQuestGiverRequestItems (Quest const *quest, ObjectGuid npcGUID, bool canComplete, bool autoLaunched)
 

Private Attributes

GossipMenu _gossipMenu
 
QuestMenu _questMenu
 
WorldSession_session
 
InteractionData _interactionData
 

Detailed Description

Definition at line 312 of file GossipDef.h.

Constructor & Destructor Documentation

◆ PlayerMenu() [1/3]

PlayerMenu::PlayerMenu ( WorldSession session)
explicit

Definition at line 206 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 214 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ Empty()

bool PlayerMenu::Empty ( ) const
inline

Definition at line 326 of file GossipDef.h.

◆ GetGossipMenu()

GossipMenu & PlayerMenu::GetGossipMenu ( )
inline

Definition at line 322 of file GossipDef.h.

◆ GetGossipOptionAction()

uint32 PlayerMenu::GetGossipOptionAction ( uint32  selection) const
inline

Definition at line 330 of file GossipDef.h.

◆ GetGossipOptionSender()

uint32 PlayerMenu::GetGossipOptionSender ( uint32  selection) const
inline

Definition at line 329 of file GossipDef.h.

◆ GetInteractionData()

InteractionData & PlayerMenu::GetInteractionData ( )
inline

Definition at line 324 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ GetQuestMenu()

QuestMenu & PlayerMenu::GetQuestMenu ( )
inline

Definition at line 323 of file GossipDef.h.

◆ IsGossipOptionCoded()

bool PlayerMenu::IsGossipOptionCoded ( uint32  selection) const
inline

Definition at line 331 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 291 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendGossipMenu()

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

Definition at line 220 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendPointOfInterest()

void PlayerMenu::SendPointOfInterest ( uint32  poiId) const

Definition at line 299 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestGiverOfferReward()

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

Definition at line 572 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 
)

Definition at line 470 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestGiverQuestListMessage()

void PlayerMenu::SendQuestGiverQuestListMessage ( Object questgiver)

Definition at line 404 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 
)

Definition at line 644 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestGiverStatus()

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

Definition at line 460 of file GossipDef.cpp.

+ Here is the call graph for this function:

◆ SendQuestQueryResponse()

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

Definition at line 559 of file GossipDef.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _gossipMenu

GossipMenu PlayerMenu::_gossipMenu
private

Definition at line 351 of file GossipDef.h.

◆ _interactionData

InteractionData PlayerMenu::_interactionData
private

Definition at line 354 of file GossipDef.h.

◆ _questMenu

QuestMenu PlayerMenu::_questMenu
private

Definition at line 352 of file GossipDef.h.

◆ _session

WorldSession* PlayerMenu::_session
private

Definition at line 353 of file GossipDef.h.


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