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
53 :
54 leaderGUID(0),
55 follow_dist(0.0f),
56 follow_angle(0.0f),
57 groupAI(0),
58 point_1(0),
59 point_2(0)
60 {
61 }
float follow_dist
Definition: CreatureGroups.h:64
uint32 point_1
Definition: CreatureGroups.h:67
float follow_angle
Definition: CreatureGroups.h:65
uint32 point_2
Definition: CreatureGroups.h:68
ObjectGuid::LowType leaderGUID
Definition: CreatureGroups.h:63
uint16 groupAI
Definition: CreatureGroups.h:66

Member Function Documentation

◆ HasGroupFlag()

bool FormationInfo::HasGroupFlag ( uint16  flag) const
inline
70{ 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