Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
CreatureGroup Class Reference

#include <CreatureGroups.h>

Collaboration diagram for CreatureGroup:

Public Member Functions

void AddMember (Creature *member)
 CreatureGroup (uint32 id)
void FormationReset (bool dismiss)
uint32 GetId () const
Creature * getLeader () const
bool isEmpty () const
bool isFormed () const
void LeaderMoveTo (float x, float y, float z)
void MemberAttackStart (Creature *member, Unit *target)
void RemoveMember (Creature *member)
 ~CreatureGroup ()

Private Types

typedef std::map< Creature *, FormationInfo * > CreatureGroupMemberType

Private Attributes

bool m_Formed
uint32 m_groupID
Creature * m_leader
CreatureGroupMemberType m_members

Detailed Description

Definition at line 41 of file CreatureGroups.h.

Member Typedef Documentation

◆ CreatureGroupMemberType

Definition at line 45 of file CreatureGroups.h.

Constructor & Destructor Documentation

◆ CreatureGroup()

CreatureGroup::CreatureGroup ( uint32 id)
inlineexplicit

Definition at line 53 of file CreatureGroups.h.

References m_Formed, m_groupID, and m_leader.

◆ ~CreatureGroup()

CreatureGroup::~CreatureGroup ( )
inline

Definition at line 54 of file CreatureGroups.h.

Member Function Documentation

◆ AddMember()

◆ FormationReset()

void CreatureGroup::FormationReset ( bool dismiss)

Definition at line 184 of file CreatureGroups.cpp.

References m_Formed, m_leader, m_members, and SF_LOG_DEBUG.

◆ GetId()

uint32 CreatureGroup::GetId ( ) const
inline

◆ getLeader()

Creature * CreatureGroup::getLeader ( ) const
inline

◆ isEmpty()

bool CreatureGroup::isEmpty ( ) const
inline

Definition at line 58 of file CreatureGroups.h.

References m_members.

Referenced by FormationMgr::RemoveCreatureFromGroup().

◆ isFormed()

bool CreatureGroup::isFormed ( ) const
inline

Definition at line 59 of file CreatureGroups.h.

References m_Formed.

◆ LeaderMoveTo()

void CreatureGroup::LeaderMoveTo ( float x,
float y,
float z )

◆ MemberAttackStart()

◆ RemoveMember()

void CreatureGroup::RemoveMember ( Creature * member)

Definition at line 144 of file CreatureGroups.cpp.

References m_leader, m_members, and Creature::SetFormation().

Referenced by FormationMgr::RemoveCreatureFromGroup().

Member Data Documentation

◆ m_Formed

bool CreatureGroup::m_Formed
private

Definition at line 49 of file CreatureGroups.h.

Referenced by CreatureGroup(), FormationReset(), and isFormed().

◆ m_groupID

uint32 CreatureGroup::m_groupID
private

Definition at line 48 of file CreatureGroups.h.

Referenced by AddMember(), CreatureGroup(), and GetId().

◆ m_leader

Creature* CreatureGroup::m_leader
private

◆ m_members

CreatureGroupMemberType CreatureGroup::m_members
private

The documentation for this class was generated from the following files: