AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "PetitionMgr.h"
Public Member Functions | |
void | LoadPetitions () |
void | LoadSignatures () |
void | AddPetition (ObjectGuid petitionGUID, ObjectGuid ownerGuid, std::string const &name, uint8 type) |
void | RemovePetition (ObjectGuid petitionGUID) |
void | RemovePetitionByOwnerAndType (ObjectGuid ownerGuid, uint8 type) |
Petition const * | GetPetition (ObjectGuid petitionGUID) const |
Petition const * | GetPetitionByOwnerWithType (ObjectGuid ownerGuid, uint8 type) const |
PetitionContainer * | GetPetitionStore () |
void | AddSignature (ObjectGuid petitionGUID, uint32 accountId, ObjectGuid playerGuid) |
void | RemoveSignaturesByPlayer (ObjectGuid playerGuid) |
void | RemoveSignaturesByPlayerAndType (ObjectGuid playerGuid, uint8 type) |
Signatures const * | GetSignature (ObjectGuid petitionGUID) const |
SignatureContainer * | GetSignatureStore () |
Static Public Member Functions | |
static PetitionMgr * | instance () |
Protected Attributes | |
PetitionContainer | PetitionStore |
SignatureContainer | SignatureStore |
Private Member Functions | |
PetitionMgr () | |
~PetitionMgr () | |
|
private |
|
private |
void PetitionMgr::AddPetition | ( | ObjectGuid | petitionGUID, |
ObjectGuid | ownerGuid, | ||
std::string const & | name, | ||
uint8 | type | ||
) |
References Petition::ownerGuid, Petition::petitionGuid, Signatures::petitionGuid, Petition::petitionName, PetitionStore, Petition::petitionType, Signatures::signatureMap, and SignatureStore.
Referenced by LoadPetitions().
void PetitionMgr::AddSignature | ( | ObjectGuid | petitionGUID, |
uint32 | accountId, | ||
ObjectGuid | playerGuid | ||
) |
References Signatures::signatureMap, and SignatureStore.
Referenced by LoadSignatures().
Petition const * PetitionMgr::GetPetition | ( | ObjectGuid | petitionGUID | ) | const |
References PetitionStore.
Petition const * PetitionMgr::GetPetitionByOwnerWithType | ( | ObjectGuid | ownerGuid, |
uint8 | type | ||
) | const |
References PetitionStore.
|
inline |
References PetitionStore.
Signatures const * PetitionMgr::GetSignature | ( | ObjectGuid | petitionGUID | ) | const |
References SignatureStore.
|
inline |
References SignatureStore.
|
static |
void PetitionMgr::LoadPetitions | ( | ) |
References AddPetition(), CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), LOG_INFO, LOG_WARN, and PetitionStore.
void PetitionMgr::LoadSignatures | ( | ) |
References AddSignature(), CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), LOG_INFO, LOG_WARN, and SignatureStore.
void PetitionMgr::RemovePetition | ( | ObjectGuid | petitionGUID | ) |
References PetitionStore, and SignatureStore.
void PetitionMgr::RemovePetitionByOwnerAndType | ( | ObjectGuid | ownerGuid, |
uint8 | type | ||
) |
References ObjectAccessor::FindConnectedPlayer(), PetitionStore, and SignatureStore.
void PetitionMgr::RemoveSignaturesByPlayer | ( | ObjectGuid | playerGuid | ) |
References SignatureStore.
void PetitionMgr::RemoveSignaturesByPlayerAndType | ( | ObjectGuid | playerGuid, |
uint8 | type | ||
) |
References Petition::petitionType, SignatureStore, and sPetitionMgr.
|
protected |
|
protected |