TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AssistanceMovementGenerator Class Reference

#include <PointMovementGenerator.h>

Public Member Functions

 AssistanceMovementGenerator (float _x, float _y, float _z)
 
MovementGeneratorType GetMovementGeneratorType () const override
 
void Finalize (Unit *) override
 
- Public Member Functions inherited from PointMovementGenerator< Creature >
 PointMovementGenerator (uint32 _id, float _x, float _y, float _z, bool _generatePath, float _speed=0.0f)
 
void DoInitialize (Creature *)
 
void DoFinalize (Creature *)
 
void DoReset (Creature *)
 
bool DoUpdate (Creature *, uint32)
 
void MovementInform (Creature *)
 
void unitSpeedChanged () override
 
MovementGeneratorType GetMovementGeneratorType () const override
 
void GetDestination (float &x, float &y, float &z) const
 
- Public Member Functions inherited from MovementGeneratorMedium< Creature, PointMovementGenerator< Creature > >
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 bool GetResetPosition (Unit *, float &, float &, float &)
 

Constructor & Destructor Documentation

AssistanceMovementGenerator::AssistanceMovementGenerator ( float  _x,
float  _y,
float  _z 
)
inline

Member Function Documentation

void AssistanceMovementGenerator::Finalize ( Unit unit)
overridevirtual

Implements MovementGenerator.

124 {
125  unit->ToCreature()->SetNoCallAssistance(false);
126  unit->ToCreature()->CallAssistance();
127  if (unit->IsAlive())
129 }
void SetNoCallAssistance(bool val)
Definition: Creature.h:618
void MoveSeekAssistanceDistract(uint32 timer)
Definition: MotionMaster.cpp:512
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
#define sWorld
Definition: World.h:887
void CallAssistance()
Definition: Creature.cpp:2021
bool IsAlive() const
Definition: Unit.h:1692
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:

MovementGeneratorType AssistanceMovementGenerator::GetMovementGeneratorType ( ) const
inlineoverridevirtual

Implements MovementGenerator.

58 { return ASSISTANCE_MOTION_TYPE; }
Definition: MotionMaster.h:49

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