![]() |
TrinityCore
|
#include <PetitionMgr.h>
Public Member Functions | |
| bool | IsPetitionSignedByAccount (uint32 accountId) const |
| void | AddSignature (uint32 accountId, ObjectGuid playerGuid, bool isLoading) |
| void | UpdateName (std::string const &newName) |
| void | RemoveSignatureBySigner (ObjectGuid playerGuid) |
Public Attributes | |
| ObjectGuid | PetitionGuid |
| ObjectGuid | OwnerGuid |
| CharterTypes | PetitionType |
| std::string | PetitionName |
| SignaturesVector | Signatures |
Definition at line 51 of file PetitionMgr.h.
| void Petition::AddSignature | ( | uint32 | accountId, |
| ObjectGuid | playerGuid, | ||
| bool | isLoading | ||
| ) |
Definition at line 224 of file PetitionMgr.cpp.
References CHAR_INS_PETITION_SIGNATURE, CharacterDatabase, ObjectGuid::GetCounter(), OwnerGuid, PetitionGuid, PreparedStatementBase::setUInt32(), and Signatures.
Referenced by WorldSession::HandleSignPetition(), and PetitionMgr::LoadSignatures().
| bool Petition::IsPetitionSignedByAccount | ( | uint32 | accountId | ) | const |
Definition at line 215 of file PetitionMgr.cpp.
References Signatures.
Referenced by WorldSession::HandleSignPetition().
| void Petition::RemoveSignatureBySigner | ( | ObjectGuid | playerGuid | ) |
Definition at line 251 of file PetitionMgr.cpp.
References ObjectAccessor::FindConnectedPlayer(), OwnerGuid, PetitionGuid, and Signatures.
| void Petition::UpdateName | ( | std::string const & | newName | ) |
Definition at line 241 of file PetitionMgr.cpp.
References CHAR_UPD_PETITION_NAME, CharacterDatabase, ObjectGuid::GetCounter(), PetitionGuid, PetitionName, PreparedStatementBase::setString(), and PreparedStatementBase::setUInt32().
Referenced by WorldSession::HandlePetitionRenameGuild().
| ObjectGuid Petition::OwnerGuid |
Definition at line 54 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), AddSignature(), WorldSession::HandleDeclinePetition(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetitionOpcode(), RemoveSignatureBySigner(), WorldSession::SendPetitionQueryOpcode(), and WorldSession::SendPetitionSigns().
| ObjectGuid Petition::PetitionGuid |
Definition at line 53 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), AddSignature(), RemoveSignatureBySigner(), WorldSession::SendPetitionSigns(), and UpdateName().
| std::string Petition::PetitionName |
Definition at line 56 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), WorldSession::HandleTurnInPetitionOpcode(), WorldSession::SendPetitionQueryOpcode(), and UpdateName().
| CharterTypes Petition::PetitionType |
Definition at line 55 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionRenameGuild(), WorldSession::HandlePetitionShowSignatures(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetitionOpcode(), and WorldSession::SendPetitionQueryOpcode().
| SignaturesVector Petition::Signatures |
Definition at line 57 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), AddSignature(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetitionOpcode(), IsPetitionSignedByAccount(), RemoveSignatureBySigner(), and WorldSession::SendPetitionSigns().