![]() |
TrinityCore
|
#include <DB2Structure.h>
Public Member Functions | |
| bool | IsFriendlyTo (FactionTemplateEntry const *entry) const |
| bool | IsHostileTo (FactionTemplateEntry const *entry) const |
| bool | IsHostileToPlayers () const |
| bool | IsNeutralToAll () const |
| bool | IsContestedGuardFaction () const |
Public Attributes | |
| uint32 | ID |
| uint16 | Faction |
| int32 | Flags |
| uint8 | FactionGroup |
| uint8 | FriendGroup |
| uint8 | EnemyGroup |
| std::array< uint16, MAX_FACTION_RELATIONS > | Enemies |
| std::array< uint16, MAX_FACTION_RELATIONS > | Friend |
Definition at line 1706 of file DB2Structure.h.
|
inline |
Definition at line 1758 of file DB2Structure.h.
References FACTION_TEMPLATE_FLAG_CONTESTED_GUARD, and Flags.
|
inline |
Definition at line 1720 of file DB2Structure.h.
References Enemies, Faction, FactionGroup, Friend, FriendGroup, and MAX_FACTION_RELATIONS.
Referenced by Player::CanUseBattlegroundObject(), Spell::EffectGameObjectDamage(), WorldObject::GetFactionReactionTo(), UF::ViewerDependentValue< UF::UnitData::FactionTemplateTag >::GetValue(), and UF::ViewerDependentValue< UF::UnitData::PvpFlagsTag >::GetValue().
|
inline |
Definition at line 1735 of file DB2Structure.h.
References Enemies, EnemyGroup, Faction, FactionGroup, Friend, and MAX_FACTION_RELATIONS.
Referenced by WorldObject::GetFactionReactionTo().
|
inline |
Definition at line 1750 of file DB2Structure.h.
References EnemyGroup, and FACTION_MASK_PLAYER.
Referenced by WorldObject::IsHostileToPlayers().
|
inline |
Definition at line 1751 of file DB2Structure.h.
References Enemies, EnemyGroup, FriendGroup, and MAX_FACTION_RELATIONS.
Referenced by WorldObject::IsNeutralToAll().
| std::array<uint16, MAX_FACTION_RELATIONS> FactionTemplateEntry::Enemies |
Definition at line 1714 of file DB2Structure.h.
Referenced by IsFriendlyTo(), IsHostileTo(), and IsNeutralToAll().
| uint8 FactionTemplateEntry::EnemyGroup |
Definition at line 1713 of file DB2Structure.h.
Referenced by IsHostileTo(), IsHostileToPlayers(), IsNeutralToAll(), and Player::UpdateHostileAreaState().
| uint16 FactionTemplateEntry::Faction |
Definition at line 1709 of file DB2Structure.h.
Referenced by WorldObject::GetFactionReactionTo(), ReputationMgr::GetForcedRankIfAny(), Player::GetReputationPriceDiscount(), IsFriendlyTo(), IsHostileTo(), WorldObject::IsHostileToPlayers(), WorldObject::IsNeutralToAll(), ReputationMgr::SetVisible(), and Unit::StopAttackFaction().
| uint8 FactionTemplateEntry::FactionGroup |
Definition at line 1711 of file DB2Structure.h.
Referenced by AuctionHouseMgr::GetAuctionHouseEntry(), AuctionHouseMgr::GetAuctionsMap(), Player::GetQuestMinLevel(), IsFriendlyTo(), IsHostileTo(), and CriteriaHandler::ModifierSatisfied().
| int32 FactionTemplateEntry::Flags |
Definition at line 1710 of file DB2Structure.h.
Referenced by WorldObject::GetFactionReactionTo(), and IsContestedGuardFaction().
| std::array<uint16, MAX_FACTION_RELATIONS> FactionTemplateEntry::Friend |
Definition at line 1715 of file DB2Structure.h.
Referenced by IsFriendlyTo(), and IsHostileTo().
| uint8 FactionTemplateEntry::FriendGroup |
Definition at line 1712 of file DB2Structure.h.
Referenced by Player::IsFriendlyArea(), IsFriendlyTo(), IsNeutralToAll(), and Player::UpdateHostileAreaState().
| uint32 FactionTemplateEntry::ID |
Definition at line 1708 of file DB2Structure.h.