Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
TicketInfo Class Referenceabstract

#include <TicketInfo.h>

Inheritance diagram for TicketInfo:

Public Member Functions

virtual void DeleteFromDB ()=0
virtual std::string FormatMessageString (ChatHandler &handler, bool detailed=false) const =0
virtual std::string FormatMessageString (ChatHandler &handler, const char *szClosedName, const char *szAssignedToName, const char *szUnassignedName, const char *szDeletedName) const
PlayerGetAssignedPlayer () const
uint64 GetAssignedToGUID () const
std::string GetAssignedToName () const
std::string const & GetComment () const
uint32 GetMapId () const
PlayerGetPlayer () const
uint64 GetPlayerGuid () const
std::string const & GetPlayerName () const
uint32 GetTicketId () const
bool IsAssigned () const
bool IsAssignedNotTo (uint64 guid) const
bool IsAssignedTo (uint64 guid) const
bool IsClosed () const
bool IsFromPlayer (uint64 guid) const
virtual void LoadFromDB (Field *fields)=0
virtual void SaveToDB (SQLTransaction &trans) const =0
virtual void SetAssignedTo (uint64 assignedTo, bool=false)
void SetClosedBy (uint64 closer)
void SetComment (std::string &comment)
void SetComment (std::string comment)
void SetPosition (uint32 MapID, G3D::Vector3 pos)
virtual void SetUnassigned ()
void TeleportTo (Player *player) const
 TicketInfo ()
 TicketInfo (Player *player)
virtual ~TicketInfo ()

Protected Attributes

uint64 _assignedTo
uint64 _closedBy
std::string _comment
uint32 _mapId
uint64 _playerGuid
std::string _playerName
G3D::Vector3 _pos
uint32 _ticketCreateTime
uint32 _ticketId

Detailed Description

Definition at line 68 of file TicketInfo.h.

Constructor & Destructor Documentation

◆ TicketInfo() [1/2]

TicketInfo::TicketInfo ( )

◆ TicketInfo() [2/2]

TicketInfo::TicketInfo ( Player * player)

Definition at line 26 of file TicketInfo.cpp.

References _assignedTo, _closedBy, _mapId, _playerGuid, _ticketCreateTime, and _ticketId.

◆ ~TicketInfo()

TicketInfo::~TicketInfo ( )
virtual

Definition at line 28 of file TicketInfo.cpp.

Member Function Documentation

◆ DeleteFromDB()

virtual void TicketInfo::DeleteFromDB ( )
pure virtual

Implemented in BugTicket, GmTicket, and SuggestTicket.

◆ FormatMessageString() [1/2]

virtual std::string TicketInfo::FormatMessageString ( ChatHandler & handler,
bool detailed = false ) const
pure virtual

Implemented in BugTicket, GmTicket, and SuggestTicket.

◆ FormatMessageString() [2/2]

std::string TicketInfo::FormatMessageString ( ChatHandler & handler,
const char * szClosedName,
const char * szAssignedToName,
const char * szUnassignedName,
const char * szDeletedName ) const
virtual

◆ GetAssignedPlayer()

Player * TicketInfo::GetAssignedPlayer ( ) const
inline

◆ GetAssignedToGUID()

uint64 TicketInfo::GetAssignedToGUID ( ) const
inline

Definition at line 88 of file TicketInfo.h.

References _assignedTo.

Referenced by ticket_commandscript::HandleGMTicketUnAssignCommand().

◆ GetAssignedToName()

std::string TicketInfo::GetAssignedToName ( ) const

◆ GetComment()

std::string const & TicketInfo::GetComment ( ) const
inline

Definition at line 81 of file TicketInfo.h.

References _comment.

◆ GetMapId()

uint32 TicketInfo::GetMapId ( ) const
inline

Definition at line 86 of file TicketInfo.h.

References _mapId.

Referenced by TicketMgr::SendGmTicket().

◆ GetPlayer()

◆ GetPlayerGuid()

uint64 TicketInfo::GetPlayerGuid ( ) const
inline

Definition at line 87 of file TicketInfo.h.

References _playerGuid.

◆ GetPlayerName()

std::string const & TicketInfo::GetPlayerName ( ) const
inline

Definition at line 82 of file TicketInfo.h.

References _playerName.

◆ GetTicketId()

◆ IsAssigned()

bool TicketInfo::IsAssigned ( ) const
inline

Definition at line 76 of file TicketInfo.h.

References _assignedTo.

Referenced by ticket_commandscript::HandleGMTicketUnAssignCommand(), and IsAssignedNotTo().

◆ IsAssignedNotTo()

◆ IsAssignedTo()

bool TicketInfo::IsAssignedTo ( uint64 guid) const
inline

Definition at line 78 of file TicketInfo.h.

References _assignedTo.

Referenced by ticket_commandscript::HandleGMTicketAssignToCommand(), and IsAssignedNotTo().

◆ IsClosed()

◆ IsFromPlayer()

bool TicketInfo::IsFromPlayer ( uint64 guid) const
inline

Definition at line 77 of file TicketInfo.h.

References _playerGuid.

◆ LoadFromDB()

virtual void TicketInfo::LoadFromDB ( Field * fields)
pure virtual

Implemented in BugTicket, GmTicket, and SuggestTicket.

◆ SaveToDB()

virtual void TicketInfo::SaveToDB ( SQLTransaction & trans) const
pure virtual

Implemented in BugTicket, GmTicket, and SuggestTicket.

◆ SetAssignedTo()

virtual void TicketInfo::SetAssignedTo ( uint64 assignedTo,
bool = false )
inlinevirtual

Definition at line 100 of file TicketInfo.h.

References _assignedTo.

Referenced by ticket_commandscript::HandleGMTicketAssignToCommand().

◆ SetClosedBy()

void TicketInfo::SetClosedBy ( uint64 closer)
inline

Definition at line 95 of file TicketInfo.h.

References _closedBy.

◆ SetComment() [1/2]

void TicketInfo::SetComment ( std::string & comment)
inline

Definition at line 96 of file TicketInfo.h.

References _comment.

◆ SetComment() [2/2]

void TicketInfo::SetComment ( std::string comment)
inline

Definition at line 93 of file TicketInfo.h.

References _comment.

Referenced by ticket_commandscript::HandleGMTicketCommentCommand().

◆ SetPosition()

void TicketInfo::SetPosition ( uint32 MapID,
G3D::Vector3 pos )

Definition at line 44 of file TicketInfo.cpp.

References _mapId, and _pos.

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetUnassigned()

virtual void TicketInfo::SetUnassigned ( )
inlinevirtual

Reimplemented in GmTicket.

Definition at line 101 of file TicketInfo.h.

References _assignedTo.

◆ TeleportTo()

void TicketInfo::TeleportTo ( Player * player) const

Definition at line 30 of file TicketInfo.cpp.

References _mapId, _pos, and Player::TeleportTo().

Referenced by go_commandscript::HandleGoTicketCommand().

Member Data Documentation

◆ _assignedTo

◆ _closedBy

◆ _comment

◆ _mapId

◆ _playerGuid

◆ _playerName

std::string TicketInfo::_playerName
protected

◆ _pos

◆ _ticketCreateTime

◆ _ticketId


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