TrinityCore
FactionTemplateEntry Struct Reference

#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
 
uint16 Flags
 
uint8 FactionGroup
 
uint8 FriendGroup
 
uint8 EnemyGroup
 
std::array< uint16, MAX_FACTION_RELATIONSEnemies
 
std::array< uint16, MAX_FACTION_RELATIONSFriend
 

Detailed Description

Definition at line 1596 of file DB2Structure.h.

Member Function Documentation

◆ IsContestedGuardFaction()

bool FactionTemplateEntry::IsContestedGuardFaction ( ) const
inline

Definition at line 1648 of file DB2Structure.h.

◆ IsFriendlyTo()

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

Definition at line 1610 of file DB2Structure.h.

+ Here is the caller graph for this function:

◆ IsHostileTo()

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

Definition at line 1625 of file DB2Structure.h.

+ Here is the caller graph for this function:

◆ IsHostileToPlayers()

bool FactionTemplateEntry::IsHostileToPlayers ( ) const
inline

Definition at line 1640 of file DB2Structure.h.

+ Here is the caller graph for this function:

◆ IsNeutralToAll()

bool FactionTemplateEntry::IsNeutralToAll ( ) const
inline

Definition at line 1641 of file DB2Structure.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ Enemies

std::array<uint16, MAX_FACTION_RELATIONS> FactionTemplateEntry::Enemies

Definition at line 1604 of file DB2Structure.h.

◆ EnemyGroup

uint8 FactionTemplateEntry::EnemyGroup

Definition at line 1603 of file DB2Structure.h.

◆ Faction

uint16 FactionTemplateEntry::Faction

Definition at line 1599 of file DB2Structure.h.

◆ FactionGroup

uint8 FactionTemplateEntry::FactionGroup

Definition at line 1601 of file DB2Structure.h.

◆ Flags

uint16 FactionTemplateEntry::Flags

Definition at line 1600 of file DB2Structure.h.

◆ Friend

std::array<uint16, MAX_FACTION_RELATIONS> FactionTemplateEntry::Friend

Definition at line 1605 of file DB2Structure.h.

◆ FriendGroup

uint8 FactionTemplateEntry::FriendGroup

Definition at line 1602 of file DB2Structure.h.

◆ ID

uint32 FactionTemplateEntry::ID

Definition at line 1598 of file DB2Structure.h.


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