AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AssistanceMovementGenerator Class Reference

#include "PointMovementGenerator.h"

Inheritance diagram for AssistanceMovementGenerator:
PointMovementGenerator< Creature > MovementGeneratorMedium< T, D > MovementGenerator

Public Member Functions

 AssistanceMovementGenerator (float _x, float _y, float _z)
 
MovementGeneratorType GetMovementGeneratorType ()
 
void Finalize (Unit *)
 
- Public Member Functions inherited from PointMovementGenerator< Creature >
 PointMovementGenerator (uint32 _id, float _x, float _y, float _z, float _speed=0.0f, float orientation=0.0f, const Movement::PointsArray *_path=nullptr, bool generatePath=false, bool forceDestination=false, ObjectGuid chargeTargetGUID=ObjectGuid::Empty)
 
void DoInitialize (Creature *)
 
void DoFinalize (Creature *)
 
void DoReset (Creature *)
 
bool DoUpdate (Creature *, uint32)
 
void MovementInform (Creature *)
 
void unitSpeedChanged ()
 
MovementGeneratorType GetMovementGeneratorType ()
 
bool GetDestination (float &x, float &y, float &z) const
 
- Public Member Functions inherited from MovementGeneratorMedium< T, D >
void Initialize (Unit *u) override
 
void Finalize (Unit *u) override
 
void Reset (Unit *u) override
 
bool Update (Unit *u, uint32 time_diff) override
 
- Public Member Functions inherited from MovementGenerator
virtual ~MovementGenerator ()
 
virtual uint32 GetSplineId () const
 
virtual void Pause (uint32)
 
virtual void Resume (uint32)
 
virtual bool GetResetPosition (float &, float &, float &)
 

Detailed Description

Constructor & Destructor Documentation

◆ AssistanceMovementGenerator()

AssistanceMovementGenerator::AssistanceMovementGenerator ( float  _x,
float  _y,
float  _z 
)
inline
64 :
65 PointMovementGenerator<Creature>(0, _x, _y, _z) {}
Definition PointMovementGenerator.h:26

Member Function Documentation

◆ Finalize()

void AssistanceMovementGenerator::Finalize ( Unit unit)
virtual

Implements MovementGenerator.

219{
220 unit->ToCreature()->SetNoCallAssistance(false);
221 unit->ToCreature()->CallAssistance();
222 if (unit->IsAlive())
224}
@ CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY
Definition IWorld.h:282
void CallAssistance(Unit *target=nullptr)
Definition Creature.cpp:2438
void SetNoCallAssistance(bool val)
Definition Creature.h:271
void MoveSeekAssistanceDistract(uint32 timer)
Definition MotionMaster.cpp:726
Creature * ToCreature()
Definition Object.h:205
MotionMaster * GetMotionMaster()
Definition Unit.h:1673
bool IsAlive() const
Definition Unit.h:1707
#define sWorld
Definition World.h:363

References Creature::CallAssistance(), CONFIG_CREATURE_FAMILY_ASSISTANCE_DELAY, Unit::GetMotionMaster(), Unit::IsAlive(), MotionMaster::MoveSeekAssistanceDistract(), Creature::SetNoCallAssistance(), sWorld, and Object::ToCreature().

◆ GetMovementGeneratorType()

MovementGeneratorType AssistanceMovementGenerator::GetMovementGeneratorType ( )
inlinevirtual

Implements MovementGenerator.

67{ return ASSISTANCE_MOTION_TYPE; }
@ ASSISTANCE_MOTION_TYPE
Definition MotionMaster.h:51

References ASSISTANCE_MOTION_TYPE.


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