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

#include "IdleMovementGenerator.h"

Inheritance diagram for AssistanceDistractMovementGenerator:
DistractMovementGenerator MovementGenerator

Public Member Functions

 AssistanceDistractMovementGenerator (uint32 timer)
 
MovementGeneratorType GetMovementGeneratorType () override
 
void Finalize (Unit *) override
 
- Public Member Functions inherited from DistractMovementGenerator
 DistractMovementGenerator (uint32 timer)
 
void Initialize (Unit *) override
 
void Finalize (Unit *) override
 
void Reset (Unit *owner) override
 
bool Update (Unit *, uint32) override
 
MovementGeneratorType GetMovementGeneratorType () override
 
- Public Member Functions inherited from MovementGenerator
virtual ~MovementGenerator ()
 
virtual void Initialize (Unit *)=0
 
virtual void Finalize (Unit *)=0
 
virtual void Reset (Unit *)=0
 
virtual bool Update (Unit *, uint32 time_diff)=0
 
virtual MovementGeneratorType GetMovementGeneratorType ()=0
 
virtual uint32 GetSplineId () const
 
virtual void unitSpeedChanged ()
 
virtual void Pause (uint32)
 
virtual void Resume (uint32)
 
virtual bool GetResetPosition (float &, float &, float &)
 

Detailed Description

Constructor & Destructor Documentation

◆ AssistanceDistractMovementGenerator()

AssistanceDistractMovementGenerator::AssistanceDistractMovementGenerator ( uint32  timer)
inline
67 :
Definition: IdleMovementGenerator.h:50

Member Function Documentation

◆ Finalize()

void AssistanceDistractMovementGenerator::Finalize ( Unit unit)
overridevirtual

Reimplemented from DistractMovementGenerator.

110{
113}
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ UNIT_STATE_DISTRACTED
Definition: UnitDefines.h:161
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:97
Creature * ToCreature()
Definition: Object.h:202
void ClearUnitState(uint32 f)
Definition: Unit.h:674

References Unit::ClearUnitState(), REACT_AGGRESSIVE, Creature::SetReactState(), Object::ToCreature(), and UNIT_STATE_DISTRACTED.

◆ GetMovementGeneratorType()

MovementGeneratorType AssistanceDistractMovementGenerator::GetMovementGeneratorType ( )
inlineoverridevirtual

Reimplemented from DistractMovementGenerator.

@ ASSISTANCE_DISTRACT_MOTION_TYPE
Definition: MotionMaster.h:50

References ASSISTANCE_DISTRACT_MOTION_TYPE.