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

Public Member Functions

 SplineHandler (Unit *unit)
 
bool operator() (Movement::MoveSpline::UpdateResult result)
 

Private Attributes

Unit_unit
 

Detailed Description

Constructor & Destructor Documentation

◆ SplineHandler()

SplineHandler::SplineHandler ( Unit unit)
inline
557: _unit(unit) { }
Unit * _unit
Definition: Unit.cpp:572

Member Function Documentation

◆ operator()()

bool SplineHandler::operator() ( Movement::MoveSpline::UpdateResult  result)
inline
560 {
564 {
566 }
567
568 return true;
569 }
@ ESCORT_MOTION_TYPE
Definition: MotionMaster.h:57
virtual void MovementInform(uint32, uint32)
Definition: CreatureAI.h:157
CreatureAI * AI() const
Definition: Creature.h:140
bool IsCreature() const
Definition: Object.h:204
Creature * ToCreature()
Definition: Object.h:205
Movement::MoveSpline * movespline
Definition: Unit.h:1979
MotionMaster * GetMotionMaster()
Definition: Unit.h:1620
MovementGeneratorType GetCurrentMovementGeneratorType() const
Definition: MotionMaster.cpp:913
uint32 GetCurrentSplineId() const
Definition: MotionMaster.cpp:930
uint32 GetId() const
Definition: MoveSpline.h:115
@ Result_NextSegment
Definition: MoveSpline.h:48
@ Result_JustArrived
Definition: MoveSpline.h:49
int32 currentPathIdx() const
Definition: MoveSpline.cpp:317

References _unit, Creature::AI(), Movement::MoveSpline::currentPathIdx(), ESCORT_MOTION_TYPE, MotionMaster::GetCurrentMovementGeneratorType(), MotionMaster::GetCurrentSplineId(), Movement::MoveSpline::GetId(), Unit::GetMotionMaster(), Object::IsCreature(), CreatureAI::MovementInform(), Unit::movespline, Movement::MoveSpline::Result_JustArrived, Movement::MoveSpline::Result_NextSegment, and Object::ToCreature().

Member Data Documentation

◆ _unit

Unit* SplineHandler::_unit
private

Referenced by operator()().