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

#include <TicketInfo.h>

Inheritance diagram for BugTicket:
Collaboration diagram for BugTicket:

Public Member Functions

 BugTicket ()
 BugTicket (Player *player, WorldPacket &bugPacket)
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 &bugnote)
void SetOrientation (float Orientation)
 ~BugTicket ()
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

std::string _bugnote
float _Orientation

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 168 of file TicketInfo.h.

Constructor & Destructor Documentation

◆ BugTicket() [1/2]

BugTicket::BugTicket ( )

Definition at line 223 of file TicketInfo.cpp.

References _Orientation.

◆ BugTicket() [2/2]

◆ ~BugTicket()

BugTicket::~BugTicket ( )

Definition at line 238 of file TicketInfo.cpp.

Member Function Documentation

◆ DeleteFromDB()

void BugTicket::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

◆ GetNote()

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

Definition at line 175 of file TicketInfo.h.

References _bugnote.

◆ LoadFromDB()

◆ SaveToDB()

◆ SetNote()

void BugTicket::SetNote ( std::string const & bugnote)
inline

Definition at line 178 of file TicketInfo.h.

References _bugnote.

◆ SetOrientation()

void BugTicket::SetOrientation ( float Orientation)
inline

Definition at line 177 of file TicketInfo.h.

References _Orientation.

Member Data Documentation

◆ _bugnote

std::string BugTicket::_bugnote
private

Definition at line 189 of file TicketInfo.h.

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

◆ _Orientation

float BugTicket::_Orientation
private

Definition at line 188 of file TicketInfo.h.

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


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