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
558: _unit(unit) { }
Unit * _unit
Definition: Unit.cpp:573

Member Function Documentation

◆ operator()()

bool SplineHandler::operator() ( Movement::MoveSpline::UpdateResult  result)
inline
561 {
565 {
567 }
568
569 return true;
570 }
@ ESCORT_MOTION_TYPE
Definition: MotionMaster.h:55
virtual void MovementInform(uint32, uint32)
Definition: CreatureAI.h:156
CreatureAI * AI() const
Definition: Creature.h:143
bool IsCreature() const
Definition: Object.h:201
Creature * ToCreature()
Definition: Object.h:202
Movement::MoveSpline * movespline
Definition: Unit.h:1818
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
MovementGeneratorType GetCurrentMovementGeneratorType() const
Definition: MotionMaster.cpp:910
uint32 GetCurrentSplineId() const
Definition: MotionMaster.cpp:927
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()().