|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <TicketInfo.h>
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 | |
| Player * | GetAssignedPlayer () const |
| uint64 | GetAssignedToGUID () const |
| std::string | GetAssignedToName () const |
| std::string const & | GetComment () const |
| uint32 | GetMapId () const |
| Player * | GetPlayer () 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 |
Definition at line 192 of file TicketInfo.h.
| SuggestTicket::SuggestTicket | ( | ) |
Definition at line 314 of file TicketInfo.cpp.
References _Orientation.
| SuggestTicket::SuggestTicket | ( | Player * | player, |
| WorldPacket & | bugPacket ) |
Definition at line 316 of file TicketInfo.cpp.
References TicketInfo::_mapId, _Orientation, TicketInfo::_pos, _suggestnote, TicketInfo::_ticketId, ByteBuffer::ReadBits(), ByteBuffer::ReadString(), sTicketMgr, and TicketInfo::TicketInfo().
| SuggestTicket::~SuggestTicket | ( | ) |
Definition at line 329 of file TicketInfo.cpp.
|
virtual |
Implements TicketInfo.
Definition at line 371 of file TicketInfo.cpp.
References TicketInfo::_ticketId, CHAR_DEL_GM_SUGGEST, CharacterDatabase, and PreparedStatement::setUInt32().
|
virtual |
Implements TicketInfo.
Definition at line 378 of file TicketInfo.cpp.
References TicketInfo::_assignedTo, TicketInfo::_comment, _suggestnote, TicketInfo::_ticketCreateTime, TicketInfo::_ticketId, WorldObject::GetName(), TicketInfo::GetPlayer(), LANG_COMMAND_TICKETLISTAGECREATE, LANG_COMMAND_TICKETLISTASSIGNEDTO, LANG_COMMAND_TICKETLISTCOMMENT, LANG_COMMAND_TICKETLISTGUID, LANG_COMMAND_TICKETLISTMESSAGE, LANG_COMMAND_TICKETLISTNAME, ChatHandler::PGetParseString(), secsToTimeString(), and sObjectMgr.
|
virtual |
Reimplemented from TicketInfo.
Definition at line 108 of file TicketInfo.cpp.
|
inline |
Definition at line 199 of file TicketInfo.h.
References _suggestnote.
|
virtual |
Implements TicketInfo.
Definition at line 331 of file TicketInfo.cpp.
References TicketInfo::_assignedTo, TicketInfo::_closedBy, TicketInfo::_comment, TicketInfo::_mapId, _Orientation, TicketInfo::_playerGuid, TicketInfo::_pos, _suggestnote, TicketInfo::_ticketCreateTime, TicketInfo::_ticketId, Field::GetFloat(), Field::GetInt64(), Field::GetString(), Field::GetUInt32(), Field::GetUInt64(), HIGHGUID_PLAYER, and MAKE_NEW_GUID().
Referenced by TicketMgr::LoadSuggestTickets().
|
virtual |
Implements TicketInfo.
Definition at line 352 of file TicketInfo.cpp.
References TicketInfo::_assignedTo, TicketInfo::_closedBy, TicketInfo::_comment, TicketInfo::_mapId, _Orientation, TicketInfo::_playerGuid, TicketInfo::_pos, _suggestnote, TicketInfo::_ticketId, CHAR_REP_GM_SUGGEST, CharacterDatabase, GUID_LOPART(), PreparedStatement::setFloat(), PreparedStatement::setString(), and PreparedStatement::setUInt32().
Referenced by TicketMgr::AddTicket().
|
inline |
Definition at line 202 of file TicketInfo.h.
References _suggestnote.
|
inline |
Definition at line 201 of file TicketInfo.h.
References _Orientation.
|
private |
Definition at line 212 of file TicketInfo.h.
Referenced by LoadFromDB(), SaveToDB(), SetOrientation(), SuggestTicket(), and SuggestTicket().
|
private |
Definition at line 213 of file TicketInfo.h.
Referenced by FormatMessageString(), GetNote(), LoadFromDB(), SaveToDB(), SetNote(), and SuggestTicket().