#include <ReputationMgr.h>
|
| ReputationMgr (Player *owner) |
|
| ~ReputationMgr () |
|
void | SaveToDB (CharacterDatabaseTransaction trans) |
|
void | LoadFromDB (PreparedQueryResult result) |
|
uint8 | GetVisibleFactionCount () const |
|
uint8 | GetHonoredFactionCount () const |
|
uint8 | GetReveredFactionCount () const |
|
uint8 | GetExaltedFactionCount () const |
|
FactionStateList const & | GetStateList () const |
|
FactionState const * | GetState (FactionEntry const *factionEntry) const |
|
FactionState const * | GetState (RepListID id) const |
|
bool | IsAtWar (uint32 faction_id) const |
|
bool | IsAtWar (FactionEntry const *factionEntry) const |
|
int32 | GetReputation (uint32 faction_id) const |
|
int32 | GetReputation (FactionEntry const *factionEntry) const |
|
int32 | GetBaseReputation (FactionEntry const *factionEntry) const |
|
int32 | GetMinReputation (FactionEntry const *factionEntry) const |
|
int32 | GetMaxReputation (FactionEntry const *factionEntry) const |
|
ReputationRank | GetRank (FactionEntry const *factionEntry) const |
|
ReputationRank | GetBaseRank (FactionEntry const *factionEntry) const |
|
std::string | GetReputationRankName (FactionEntry const *factionEntry) const |
|
ReputationRank const * | GetForcedRankIfAny (FactionTemplateEntry const *factionTemplateEntry) const |
|
ReputationRank const * | GetForcedRankIfAny (uint32 factionId) const |
|
bool | IsParagonReputation (FactionEntry const *factionEntry) const |
|
int32 | GetParagonLevel (uint32 paragonFactionId) const |
|
int32 | GetParagonLevel (FactionEntry const *paragonFactionEntry) const |
|
bool | HasMaximumRenownReputation (FactionEntry const *factionEntry) const |
|
bool | IsRenownReputation (FactionEntry const *factionEntry) const |
|
int32 | GetRenownLevel (FactionEntry const *renownFactionEntry) const |
|
int32 | GetRenownLevelThreshold (FactionEntry const *renownFactionEntry) const |
|
int32 | GetRenownMaxLevel (FactionEntry const *renownFactionEntry) const |
|
bool | SetReputation (FactionEntry const *factionEntry, int32 standing) |
|
bool | ModifyReputation (FactionEntry const *factionEntry, int32 standing, bool spillOverOnly=false, bool noSpillover=false) |
|
void | SetVisible (FactionTemplateEntry const *factionTemplateEntry) |
|
void | SetVisible (FactionEntry const *factionEntry) |
|
void | SetAtWar (RepListID repListID, bool on) |
|
void | SetInactive (RepListID repListID, bool on) |
|
void | ApplyForceReaction (uint32 faction_id, ReputationRank rank, bool apply) |
|
bool | SetOneFactionReputation (FactionEntry const *factionEntry, int32 standing, bool incremental) |
| Public for chat command needs. More...
|
|
void | SendInitialReputations () |
|
void | SendForceReactions () |
|
void | SendState (FactionState const *faction) |
|
Definition at line 68 of file ReputationMgr.h.
◆ ReputationMgr()
ReputationMgr::ReputationMgr |
( |
Player * |
owner | ) |
|
|
inlineexplicit |
◆ ~ReputationMgr()
ReputationMgr::~ReputationMgr |
( |
| ) |
|
|
inline |
◆ ApplyForceReaction()
◆ CanGainParagonReputationForFaction()
bool ReputationMgr::CanGainParagonReputationForFaction |
( |
FactionEntry const * |
factionEntry | ) |
const |
|
private |
◆ GetBaseRank()
◆ GetBaseReputation()
◆ GetDefaultStateFlags()
◆ GetExaltedFactionCount()
uint8 ReputationMgr::GetExaltedFactionCount |
( |
| ) |
const |
|
inline |
◆ GetFactionDataIndexForRaceAndClass()
int32 ReputationMgr::GetFactionDataIndexForRaceAndClass |
( |
FactionEntry const * |
factionEntry | ) |
const |
|
private |
◆ GetForcedRankIfAny() [1/2]
◆ GetForcedRankIfAny() [2/2]
◆ GetHonoredFactionCount()
uint8 ReputationMgr::GetHonoredFactionCount |
( |
| ) |
const |
|
inline |
◆ GetMaxReputation()
◆ GetMinReputation()
◆ GetParagonLevel() [1/2]
int32 ReputationMgr::GetParagonLevel |
( |
FactionEntry const * |
paragonFactionEntry | ) |
const |
◆ GetParagonLevel() [2/2]
int32 ReputationMgr::GetParagonLevel |
( |
uint32 |
paragonFactionId | ) |
const |
◆ GetRank()
◆ GetRenownLevel()
◆ GetRenownLevelThreshold()
int32 ReputationMgr::GetRenownLevelThreshold |
( |
FactionEntry const * |
renownFactionEntry | ) |
const |
◆ GetRenownMaxLevel()
int32 ReputationMgr::GetRenownMaxLevel |
( |
FactionEntry const * |
renownFactionEntry | ) |
const |
◆ GetReputation() [1/2]
◆ GetReputation() [2/2]
int32 ReputationMgr::GetReputation |
( |
uint32 |
faction_id | ) |
const |
◆ GetReputationRankName()
std::string ReputationMgr::GetReputationRankName |
( |
FactionEntry const * |
factionEntry | ) |
const |
◆ GetReveredFactionCount()
uint8 ReputationMgr::GetReveredFactionCount |
( |
| ) |
const |
|
inline |
◆ GetState() [1/2]
◆ GetState() [2/2]
◆ GetStateList()
◆ GetVisibleFactionCount()
uint8 ReputationMgr::GetVisibleFactionCount |
( |
| ) |
const |
|
inline |
◆ HasMaximumRenownReputation()
bool ReputationMgr::HasMaximumRenownReputation |
( |
FactionEntry const * |
factionEntry | ) |
const |
◆ Initialize()
void ReputationMgr::Initialize |
( |
| ) |
|
|
private |
◆ IsAtWar() [1/2]
bool ReputationMgr::IsAtWar |
( |
FactionEntry const * |
factionEntry | ) |
const |
◆ IsAtWar() [2/2]
bool ReputationMgr::IsAtWar |
( |
uint32 |
faction_id | ) |
const |
◆ IsParagonReputation()
bool ReputationMgr::IsParagonReputation |
( |
FactionEntry const * |
factionEntry | ) |
const |
◆ IsRenownReputation()
bool ReputationMgr::IsRenownReputation |
( |
FactionEntry const * |
factionEntry | ) |
const |
◆ LoadFromDB()
◆ ModifyReputation()
bool ReputationMgr::ModifyReputation |
( |
FactionEntry const * |
factionEntry, |
|
|
int32 |
standing, |
|
|
bool |
spillOverOnly = false , |
|
|
bool |
noSpillover = false |
|
) |
| |
|
inline |
◆ ReputationToRank()
◆ SaveToDB()
◆ SendForceReactions()
void ReputationMgr::SendForceReactions |
( |
| ) |
|
◆ SendInitialReputations()
void ReputationMgr::SendInitialReputations |
( |
| ) |
|
◆ SendState()
void ReputationMgr::SendState |
( |
FactionState const * |
faction | ) |
|
◆ SendVisible()
void ReputationMgr::SendVisible |
( |
FactionState const * |
faction, |
|
|
bool |
visible = true |
|
) |
| const |
|
private |
◆ SetAtWar() [1/2]
void ReputationMgr::SetAtWar |
( |
FactionState * |
faction, |
|
|
bool |
atWar |
|
) |
| const |
|
private |
◆ SetAtWar() [2/2]
void ReputationMgr::SetAtWar |
( |
RepListID |
repListID, |
|
|
bool |
on |
|
) |
| |
◆ SetInactive() [1/2]
void ReputationMgr::SetInactive |
( |
FactionState * |
faction, |
|
|
bool |
inactive |
|
) |
| const |
|
private |
◆ SetInactive() [2/2]
void ReputationMgr::SetInactive |
( |
RepListID |
repListID, |
|
|
bool |
on |
|
) |
| |
◆ SetOneFactionReputation()
bool ReputationMgr::SetOneFactionReputation |
( |
FactionEntry const * |
factionEntry, |
|
|
int32 |
standing, |
|
|
bool |
incremental |
|
) |
| |
◆ SetReputation() [1/2]
bool ReputationMgr::SetReputation |
( |
FactionEntry const * |
factionEntry, |
|
|
int32 |
standing |
|
) |
| |
|
inline |
◆ SetReputation() [2/2]
bool ReputationMgr::SetReputation |
( |
FactionEntry const * |
factionEntry, |
|
|
int32 |
standing, |
|
|
bool |
incremental, |
|
|
bool |
spillOverOnly, |
|
|
bool |
noSpillover |
|
) |
| |
|
private |
◆ SetVisible() [1/3]
void ReputationMgr::SetVisible |
( |
FactionEntry const * |
factionEntry | ) |
|
◆ SetVisible() [2/3]
◆ SetVisible() [3/3]
◆ UpdateRankCounters()
◆ _exaltedFactionCount
uint8 ReputationMgr::_exaltedFactionCount |
|
private |
◆ _factions
◆ _forcedReactions
◆ _honoredFactionCount
uint8 ReputationMgr::_honoredFactionCount |
|
private |
◆ _player
Player* ReputationMgr::_player |
|
private |
◆ _reveredFactionCount
uint8 ReputationMgr::_reveredFactionCount |
|
private |
◆ _sendFactionIncreased
bool ReputationMgr::_sendFactionIncreased |
|
private |
Play visual effect on next SMSG_SET_FACTION_STANDING sent.
Definition at line 175 of file ReputationMgr.h.
◆ _visibleFactionCount
uint8 ReputationMgr::_visibleFactionCount |
|
private |
◆ Reputation_Bottom
const int32 ReputationMgr::Reputation_Bottom = -42000 |
|
static |
◆ Reputation_Cap
const int32 ReputationMgr::Reputation_Cap = 42000 |
|
static |
◆ ReputationRankThresholds
std::set< int32 > const ReputationMgr::ReputationRankThresholds |
|
static |
Initial value:=
{
-42000,
-6000,
-3000,
0,
3000,
9000,
21000,
42000
}
Definition at line 78 of file ReputationMgr.h.
The documentation for this class was generated from the following files: