AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Movement::TransportPathTransform Class Reference

#include "MoveSplineInit.h"

Public Member Functions

 TransportPathTransform (Unit *owner, bool transformForTransport)
 
Vector3 operator() (Vector3 input)
 

Private Attributes

Unit_owner
 
bool _transformForTransport
 

Detailed Description

Constructor & Destructor Documentation

◆ TransportPathTransform()

Movement::TransportPathTransform::TransportPathTransform ( Unit owner,
bool  transformForTransport 
)
inline
45 : _owner(owner), _transformForTransport(transformForTransport) { }
Unit * _owner
Definition: MoveSplineInit.h:49
bool _transformForTransport
Definition: MoveSplineInit.h:50

Member Function Documentation

◆ operator()()

Vector3 Movement::TransportPathTransform::operator() ( Vector3  input)
239 {
241 if (TransportBase* transport = _owner->GetDirectTransport())
242 transport->CalculatePassengerOffset(input.x, input.y, input.z);
243
244 return input;
245 }
TransportBase * GetDirectTransport() const
Definition: Unit.cpp:18767
Definition: VehicleDefines.h:130

References _owner, _transformForTransport, and Unit::GetDirectTransport().

Member Data Documentation

◆ _owner

Unit* Movement::TransportPathTransform::_owner
private

Referenced by operator()().

◆ _transformForTransport

bool Movement::TransportPathTransform::_transformForTransport
private

Referenced by operator()().