TrinityCore
Loading...
Searching...
No Matches
FactionTemplateEntry Struct Reference

#include <DBCStructure.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
 
uint32 Faction
 
uint32 Flags
 
uint32 FactionGroup
 
uint32 FriendGroup
 
uint32 EnemyGroup
 
uint32 Enemies [MAX_FACTION_RELATIONS]
 
uint32 Friend [MAX_FACTION_RELATIONS]
 

Detailed Description

Definition at line 667 of file DBCStructure.h.

Member Function Documentation

◆ IsContestedGuardFaction()

bool FactionTemplateEntry::IsContestedGuardFaction ( ) const
inline

Definition at line 713 of file DBCStructure.h.

References FACTION_TEMPLATE_FLAG_CONTESTED_GUARD, and Flags.

◆ IsFriendlyTo()

bool FactionTemplateEntry::IsFriendlyTo ( FactionTemplateEntry const &  entry) const
inline

◆ IsHostileTo()

bool FactionTemplateEntry::IsHostileTo ( FactionTemplateEntry const &  entry) const
inline

◆ IsHostileToPlayers()

bool FactionTemplateEntry::IsHostileToPlayers ( ) const
inline

Definition at line 705 of file DBCStructure.h.

References EnemyGroup, and FACTION_MASK_PLAYER.

Referenced by WorldObject::IsHostileToPlayers().

◆ IsNeutralToAll()

bool FactionTemplateEntry::IsNeutralToAll ( ) const
inline

Definition at line 706 of file DBCStructure.h.

References Enemies, EnemyGroup, FriendGroup, and MAX_FACTION_RELATIONS.

Referenced by WorldObject::IsNeutralToAll().

Member Data Documentation

◆ Enemies

uint32 FactionTemplateEntry::Enemies[MAX_FACTION_RELATIONS]

Definition at line 675 of file DBCStructure.h.

Referenced by IsFriendlyTo(), IsHostileTo(), and IsNeutralToAll().

◆ EnemyGroup

uint32 FactionTemplateEntry::EnemyGroup

Definition at line 674 of file DBCStructure.h.

Referenced by IsHostileTo(), IsHostileToPlayers(), and IsNeutralToAll().

◆ Faction

◆ FactionGroup

uint32 FactionTemplateEntry::FactionGroup

◆ Flags

uint32 FactionTemplateEntry::Flags

Definition at line 671 of file DBCStructure.h.

Referenced by WorldObject::GetFactionReactionTo(), and IsContestedGuardFaction().

◆ Friend

uint32 FactionTemplateEntry::Friend[MAX_FACTION_RELATIONS]

Definition at line 676 of file DBCStructure.h.

Referenced by IsFriendlyTo(), and IsHostileTo().

◆ FriendGroup

uint32 FactionTemplateEntry::FriendGroup

Definition at line 673 of file DBCStructure.h.

Referenced by IsFriendlyTo(), and IsNeutralToAll().

◆ ID

uint32 FactionTemplateEntry::ID

Definition at line 669 of file DBCStructure.h.


The documentation for this struct was generated from the following file: