Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
FactionTemplateEntry Struct Reference

#include <DBCStructure.h>

Public Member Functions

bool IsContestedGuardFaction () const
bool IsFriendlyTo (FactionTemplateEntry const &entry) const
bool IsHostileTo (FactionTemplateEntry const &entry) const
bool IsHostileToPlayers () const
bool IsNeutralToAll () const

Public Attributes

uint32 enemyFaction [MAX_FACTION_RELATIONS]
uint32 faction
uint32 factionFlags
uint32 friendFaction [MAX_FACTION_RELATIONS]
uint32 friendlyMask
uint32 hostileMask
uint32 ID
uint32 ourMask

Detailed Description

Definition at line 1491 of file DBCStructure.h.

Member Function Documentation

◆ IsContestedGuardFaction()

bool FactionTemplateEntry::IsContestedGuardFaction ( ) const
inline

Definition at line 1541 of file DBCStructure.h.

References FACTION_TEMPLATE_FLAG_CONTESTED_GUARD, and factionFlags.

◆ 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 1533 of file DBCStructure.h.

References FACTION_MASK_PLAYER, and hostileMask.

Referenced by Unit::IsHostileToPlayers().

◆ IsNeutralToAll()

bool FactionTemplateEntry::IsNeutralToAll ( ) const
inline

Definition at line 1534 of file DBCStructure.h.

References enemyFaction, friendlyMask, hostileMask, and MAX_FACTION_RELATIONS.

Referenced by Unit::IsNeutralToAll().

Member Data Documentation

◆ enemyFaction

uint32 FactionTemplateEntry::enemyFaction[MAX_FACTION_RELATIONS]

Definition at line 1499 of file DBCStructure.h.

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

◆ faction

◆ factionFlags

uint32 FactionTemplateEntry::factionFlags

Definition at line 1495 of file DBCStructure.h.

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

◆ friendFaction

uint32 FactionTemplateEntry::friendFaction[MAX_FACTION_RELATIONS]

Definition at line 1500 of file DBCStructure.h.

Referenced by IsFriendlyTo(), and IsHostileTo().

◆ friendlyMask

uint32 FactionTemplateEntry::friendlyMask

Definition at line 1497 of file DBCStructure.h.

Referenced by IsFriendlyTo(), IsNeutralToAll(), and Unit::RestoreFaction().

◆ hostileMask

uint32 FactionTemplateEntry::hostileMask

Definition at line 1498 of file DBCStructure.h.

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

◆ ID

uint32 FactionTemplateEntry::ID

Definition at line 1493 of file DBCStructure.h.

Referenced by IsFriendlyTo(), and IsHostileTo().

◆ ourMask

uint32 FactionTemplateEntry::ourMask

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