|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <TicketInfo.h>
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 |
| 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 | 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 |
Definition at line 68 of file TicketInfo.h.
| TicketInfo::TicketInfo | ( | ) |
Definition at line 24 of file TicketInfo.cpp.
References _assignedTo, _closedBy, _mapId, _playerGuid, _ticketCreateTime, and _ticketId.
Referenced by BugTicket::BugTicket(), GmTicket::GmTicket(), and SuggestTicket::SuggestTicket().
| TicketInfo::TicketInfo | ( | Player * | player | ) |
Definition at line 26 of file TicketInfo.cpp.
References _assignedTo, _closedBy, _mapId, _playerGuid, _ticketCreateTime, and _ticketId.
|
virtual |
Definition at line 28 of file TicketInfo.cpp.
|
pure virtual |
Implemented in BugTicket, GmTicket, and SuggestTicket.
|
pure virtual |
Implemented in BugTicket, GmTicket, and SuggestTicket.
|
virtual |
Reimplemented in BugTicket, GmTicket, and SuggestTicket.
Definition at line 162 of file TicketInfo.cpp.
References _playerName, _ticketId, LANG_COMMAND_TICKETCLOSED, LANG_COMMAND_TICKETDELETED, LANG_COMMAND_TICKETLISTASSIGNEDTO, LANG_COMMAND_TICKETLISTGUID, LANG_COMMAND_TICKETLISTNAME, LANG_COMMAND_TICKETLISTUNASSIGNED, and ChatHandler::PGetParseString().
|
inline |
Definition at line 91 of file TicketInfo.h.
References _assignedTo, and ObjectAccessor::FindPlayer().
Referenced by ticket_commandscript::HandleGMTicketUnAssignCommand().
|
inline |
Definition at line 88 of file TicketInfo.h.
References _assignedTo.
Referenced by ticket_commandscript::HandleGMTicketUnAssignCommand().
| std::string TicketInfo::GetAssignedToName | ( | ) | const |
Definition at line 35 of file TicketInfo.cpp.
References _assignedTo, and sObjectMgr.
Referenced by ticket_commandscript::HandleGMTicketCommentCommand(), and ticket_commandscript::HandleGMTicketUnAssignCommand().
|
inline |
Definition at line 81 of file TicketInfo.h.
References _comment.
|
inline |
Definition at line 86 of file TicketInfo.h.
References _mapId.
Referenced by TicketMgr::SendGmTicket().
|
inline |
Definition at line 90 of file TicketInfo.h.
References _playerGuid, and ObjectAccessor::FindPlayer().
Referenced by BugTicket::FormatMessageString(), GmTicket::FormatMessageString(), SuggestTicket::FormatMessageString(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), ticket_commandscript::HandleGMTicketDeleteByIdCommand(), and ticket_commandscript::HandleGMTicketEscalateCommand().
|
inline |
Definition at line 87 of file TicketInfo.h.
References _playerGuid.
|
inline |
Definition at line 82 of file TicketInfo.h.
References _playerName.
|
inline |
Definition at line 85 of file TicketInfo.h.
References _ticketId.
Referenced by ticket_commandscript::_HandleGMTicketResponseAppendCommand(), TicketMgr::AddTicket(), TicketMgr::AddTicket(), TicketMgr::AddTicket(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), WorldSession::HandleGMTicketCreateOpcode(), ticket_commandscript::HandleGMTicketDeleteByIdCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), TicketMgr::LoadBugTickets(), TicketMgr::LoadGmTickets(), TicketMgr::LoadSuggestTickets(), TicketMgr::SendGmResponsee(), and TicketMgr::SendGmTicket().
|
inline |
Definition at line 76 of file TicketInfo.h.
References _assignedTo.
Referenced by ticket_commandscript::HandleGMTicketUnAssignCommand(), and IsAssignedNotTo().
|
inline |
Definition at line 79 of file TicketInfo.h.
References IsAssigned(), and IsAssignedTo().
Referenced by ticket_commandscript::_HandleGMTicketResponseAppendCommand(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), and ticket_commandscript::HandleGMTicketCommentCommand().
|
inline |
Definition at line 78 of file TicketInfo.h.
References _assignedTo.
Referenced by ticket_commandscript::HandleGMTicketAssignToCommand(), and IsAssignedNotTo().
|
inline |
Definition at line 75 of file TicketInfo.h.
References _closedBy.
Referenced by ticket_commandscript::_HandleGMTicketResponseAppendCommand(), TicketMgr::AddTicket(), TicketMgr::AddTicket(), TicketMgr::AddTicket(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), WorldSession::HandleGMTicketCreateOpcode(), ticket_commandscript::HandleGMTicketDeleteByIdCommand(), ticket_commandscript::HandleGMTicketEscalateCommand(), ticket_commandscript::HandleGMTicketGetByIdCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), TicketMgr::LoadBugTickets(), TicketMgr::LoadGmTickets(), and TicketMgr::LoadSuggestTickets().
|
inline |
Definition at line 77 of file TicketInfo.h.
References _playerGuid.
|
pure virtual |
Implemented in BugTicket, GmTicket, and SuggestTicket.
|
pure virtual |
Implemented in BugTicket, GmTicket, and SuggestTicket.
|
inlinevirtual |
Definition at line 100 of file TicketInfo.h.
References _assignedTo.
Referenced by ticket_commandscript::HandleGMTicketAssignToCommand().
|
inline |
Definition at line 95 of file TicketInfo.h.
References _closedBy.
|
inline |
Definition at line 96 of file TicketInfo.h.
References _comment.
|
inline |
Definition at line 93 of file TicketInfo.h.
References _comment.
Referenced by ticket_commandscript::HandleGMTicketCommentCommand().
| void TicketInfo::SetPosition | ( | uint32 | MapID, |
| G3D::Vector3 | pos ) |
Definition at line 44 of file TicketInfo.cpp.
Referenced by WorldSession::HandleGMTicketCreateOpcode().
|
inlinevirtual |
| 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().
|
protected |
Definition at line 116 of file TicketInfo.h.
Referenced by BugTicket::FormatMessageString(), BugTicket::FormatMessageString(), GmTicket::FormatMessageString(), SuggestTicket::FormatMessageString(), GetAssignedPlayer(), GetAssignedToGUID(), GetAssignedToName(), IsAssigned(), IsAssignedTo(), BugTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), BugTicket::SaveToDB(), GmTicket::SaveToDB(), SuggestTicket::SaveToDB(), SetAssignedTo(), GmTicket::SetUnassigned(), SetUnassigned(), TicketInfo(), and TicketInfo().
|
protected |
Definition at line 115 of file TicketInfo.h.
Referenced by BugTicket::FormatMessageString(), IsClosed(), BugTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), BugTicket::SaveToDB(), GmTicket::SaveToDB(), SuggestTicket::SaveToDB(), SetClosedBy(), TicketInfo(), and TicketInfo().
|
protected |
Definition at line 117 of file TicketInfo.h.
Referenced by BugTicket::FormatMessageString(), BugTicket::FormatMessageString(), GmTicket::FormatMessageString(), SuggestTicket::FormatMessageString(), GetComment(), BugTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), BugTicket::SaveToDB(), GmTicket::SaveToDB(), SuggestTicket::SaveToDB(), SetComment(), and SetComment().
|
protected |
Definition at line 113 of file TicketInfo.h.
Referenced by BugTicket::BugTicket(), BugTicket::FormatMessageString(), GetMapId(), BugTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), BugTicket::SaveToDB(), GmTicket::SaveToDB(), SuggestTicket::SaveToDB(), SetPosition(), SuggestTicket::SuggestTicket(), TeleportTo(), TicketInfo(), and TicketInfo().
|
protected |
Definition at line 114 of file TicketInfo.h.
Referenced by GetPlayer(), GetPlayerGuid(), IsFromPlayer(), BugTicket::LoadFromDB(), GmTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), BugTicket::SaveToDB(), GmTicket::SaveToDB(), SuggestTicket::SaveToDB(), TicketInfo(), and TicketInfo().
|
protected |
Definition at line 118 of file TicketInfo.h.
Referenced by GmTicket::FormatMessageString(), FormatMessageString(), GetPlayerName(), GmTicket::GmTicket(), GmTicket::LoadFromDB(), and GmTicket::SaveToDB().
|
protected |
Definition at line 119 of file TicketInfo.h.
Referenced by BugTicket::BugTicket(), BugTicket::FormatMessageString(), BugTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), BugTicket::SaveToDB(), GmTicket::SaveToDB(), SuggestTicket::SaveToDB(), SetPosition(), SuggestTicket::SuggestTicket(), and TeleportTo().
|
protected |
Definition at line 112 of file TicketInfo.h.
Referenced by BugTicket::FormatMessageString(), BugTicket::FormatMessageString(), GmTicket::FormatMessageString(), SuggestTicket::FormatMessageString(), BugTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), GmTicket::SaveToDB(), TicketInfo(), and TicketInfo().
|
protected |
Definition at line 111 of file TicketInfo.h.
Referenced by BugTicket::BugTicket(), BugTicket::DeleteFromDB(), GmTicket::DeleteFromDB(), SuggestTicket::DeleteFromDB(), BugTicket::FormatMessageString(), GmTicket::FormatMessageString(), GmTicket::FormatMessageString(), SuggestTicket::FormatMessageString(), FormatMessageString(), GetTicketId(), GmTicket::GmTicket(), BugTicket::LoadFromDB(), GmTicket::LoadFromDB(), SuggestTicket::LoadFromDB(), BugTicket::SaveToDB(), GmTicket::SaveToDB(), SuggestTicket::SaveToDB(), SuggestTicket::SuggestTicket(), TicketInfo(), and TicketInfo().