Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SuggestTicket Class Reference

#include <TicketInfo.h>

Inheritance diagram for SuggestTicket:
Collaboration diagram for SuggestTicket:

Public Member Functions

void DeleteFromDB () OVERRIDE
std::string FormatMessageString (ChatHandler &handler, bool detailed=false) const OVERRIDE
virtual std::string FormatMessageString (ChatHandler &handler, const char *szClosedName, const char *szAssignedToName, const char *szUnassignedName, const char *szDeletedName) const
std::string const & GetNote () const
void LoadFromDB (Field *fields) OVERRIDE
void SaveToDB (SQLTransaction &trans) const OVERRIDE
void SetNote (std::string const &suggestnote)
void SetOrientation (float Orientation)
 SuggestTicket ()
 SuggestTicket (Player *player, WorldPacket &bugPacket)
 ~SuggestTicket ()
Public Member Functions inherited from TicketInfo
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 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 ()

Private Attributes

float _Orientation
std::string _suggestnote

Additional Inherited Members

Protected Attributes inherited from TicketInfo
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 192 of file TicketInfo.h.

Constructor & Destructor Documentation

◆ SuggestTicket() [1/2]

SuggestTicket::SuggestTicket ( )

Definition at line 314 of file TicketInfo.cpp.

References _Orientation.

◆ SuggestTicket() [2/2]

◆ ~SuggestTicket()

SuggestTicket::~SuggestTicket ( )

Definition at line 329 of file TicketInfo.cpp.

Member Function Documentation

◆ DeleteFromDB()

void SuggestTicket::DeleteFromDB ( )
virtual

◆ FormatMessageString() [1/2]

◆ FormatMessageString() [2/2]

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

Reimplemented from TicketInfo.

Definition at line 108 of file TicketInfo.cpp.

◆ GetNote()

std::string const & SuggestTicket::GetNote ( ) const
inline

Definition at line 199 of file TicketInfo.h.

References _suggestnote.

◆ LoadFromDB()

◆ SaveToDB()

◆ SetNote()

void SuggestTicket::SetNote ( std::string const & suggestnote)
inline

Definition at line 202 of file TicketInfo.h.

References _suggestnote.

◆ SetOrientation()

void SuggestTicket::SetOrientation ( float Orientation)
inline

Definition at line 201 of file TicketInfo.h.

References _Orientation.

Member Data Documentation

◆ _Orientation

float SuggestTicket::_Orientation
private

Definition at line 212 of file TicketInfo.h.

Referenced by LoadFromDB(), SaveToDB(), SetOrientation(), SuggestTicket(), and SuggestTicket().

◆ _suggestnote

std::string SuggestTicket::_suggestnote
private

Definition at line 213 of file TicketInfo.h.

Referenced by FormatMessageString(), GetNote(), LoadFromDB(), SaveToDB(), SetNote(), and SuggestTicket().


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