AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
FormationInfo Struct Reference

#include "CreatureGroups.h"

Public Member Functions

 FormationInfo ()
 
bool HasGroupFlag (uint16 flag) const
 

Public Attributes

ObjectGuid::LowType leaderGUID
 
float follow_dist
 
float follow_angle
 
uint16 groupAI
 
uint32 point_1
 
uint32 point_2
 

Detailed Description

Constructor & Destructor Documentation

◆ FormationInfo()

FormationInfo::FormationInfo ( )
inline
52 :
53 leaderGUID(0),
54 follow_dist(0.0f),
55 follow_angle(0.0f),
56 groupAI(0),
57 point_1(0),
58 point_2(0)
59 {
60 }
float follow_dist
Definition: CreatureGroups.h:63
uint32 point_1
Definition: CreatureGroups.h:66
float follow_angle
Definition: CreatureGroups.h:64
uint32 point_2
Definition: CreatureGroups.h:67
ObjectGuid::LowType leaderGUID
Definition: CreatureGroups.h:62
uint16 groupAI
Definition: CreatureGroups.h:65

Member Function Documentation

◆ HasGroupFlag()

bool FormationInfo::HasGroupFlag ( uint16  flag) const
inline
69{ return !!(groupAI & flag); }

References groupAI.

Referenced by CreatureGroup::LeaderMoveTo(), and FormationMgr::LoadCreatureFormations().

Member Data Documentation

◆ follow_angle

◆ follow_dist

◆ groupAI

◆ leaderGUID

◆ point_1

uint32 FormationInfo::point_1

◆ point_2

uint32 FormationInfo::point_2