Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
FlightPathMovementGenerator Class Reference

#include <WaypointMovementGenerator.h>

Inheritance diagram for FlightPathMovementGenerator:
Collaboration diagram for FlightPathMovementGenerator:

Public Member Functions

void DoEventIfAny (Player *player, TaxiPathNodeEntry const &node, bool departure)
void DoFinalize (Player *)
void DoInitialize (Player *)
void DoReset (Player *)
bool DoUpdate (Player *, uint32)
 FlightPathMovementGenerator (TaxiPathNodeList const &pathnodes, uint32 startNode=0)
MovementGeneratorType GetMovementGeneratorType ()
TaxiPathNodeList const & GetPath ()
uint32 GetPathAtMapEnd () const
bool GetResetPos (Player *, float &x, float &y, float &z)
bool HasArrived () const
void InitEndGridInfo ()
void PreloadEndGrid ()
void SetCurrentNodeAfterTeleport ()
void SkipCurrentNode ()
Public Member Functions inherited from MovementGeneratorMedium< Player, FlightPathMovementGenerator >
void Finalize (Unit *u)
void Initialize (Unit *u)
void Reset (Unit *u)
bool Update (Unit *u, uint32 time_diff)
Public Member Functions inherited from MovementGenerator
virtual bool GetResetPosition (Unit *, float &, float &, float &)
virtual void unitSpeedChanged ()
virtual ~MovementGenerator ()
Public Member Functions inherited from PathMovementBase< T, P >
uint32 GetCurrentNode () const
void LoadPath (T &)
 PathMovementBase ()
virtual ~PathMovementBase ()

Private Attributes

float _endGridX
float _endGridY
 X coord of last node location.
uint32 _endMapId
 Y coord of last node location.
uint32 _preloadTargetNode
 map Id of last node location

Additional Inherited Members

Protected Attributes inherited from PathMovementBase< T, P >
uint32 i_currentNode
i_path

Detailed Description

FlightPathMovementGenerator generates movement of the player for the paths and hence generates ground and activities for the player.

Definition at line 98 of file WaypointMovementGenerator.h.

Constructor & Destructor Documentation

◆ FlightPathMovementGenerator()

FlightPathMovementGenerator::FlightPathMovementGenerator ( TaxiPathNodeList const & pathnodes,
uint32 startNode = 0 )
inlineexplicit

Member Function Documentation

◆ DoEventIfAny()

◆ DoFinalize()

◆ DoInitialize()

void FlightPathMovementGenerator::DoInitialize ( Player * player)

◆ DoReset()

◆ DoUpdate()

◆ GetMovementGeneratorType()

MovementGeneratorType FlightPathMovementGenerator::GetMovementGeneratorType ( )
inlinevirtual

Implements MovementGenerator.

Definition at line 112 of file WaypointMovementGenerator.h.

References FLIGHT_MOTION_TYPE.

◆ GetPath()

TaxiPathNodeList const & FlightPathMovementGenerator::GetPath ( )
inline

◆ GetPathAtMapEnd()

uint32 FlightPathMovementGenerator::GetPathAtMapEnd ( ) const

◆ GetResetPos()

bool FlightPathMovementGenerator::GetResetPos ( Player * ,
float & x,
float & y,
float & z )

◆ HasArrived()

bool FlightPathMovementGenerator::HasArrived ( ) const
inline

◆ InitEndGridInfo()

void FlightPathMovementGenerator::InitEndGridInfo ( )

Storage to preload flightmaster grid at end of flight. For multi-stop flights, this will be reinitialized for each flightmaster at the end of each spline (or stop) in the flight.

Number of nodes in path.

MapId of last node

Definition at line 326 of file WaypointMovementGenerator.cpp.

References _endGridX, _endGridY, _endMapId, and _preloadTargetNode.

Referenced by DoInitialize().

◆ PreloadEndGrid()

void FlightPathMovementGenerator::PreloadEndGrid ( )

◆ SetCurrentNodeAfterTeleport()

void FlightPathMovementGenerator::SetCurrentNodeAfterTeleport ( )

◆ SkipCurrentNode()

void FlightPathMovementGenerator::SkipCurrentNode ( )
inline

Member Data Documentation

◆ _endGridX

float FlightPathMovementGenerator::_endGridX
private

◆ _endGridY

float FlightPathMovementGenerator::_endGridY
private

X coord of last node location.

Definition at line 128 of file WaypointMovementGenerator.h.

Referenced by FlightPathMovementGenerator(), InitEndGridInfo(), and PreloadEndGrid().

◆ _endMapId

uint32 FlightPathMovementGenerator::_endMapId
private

Y coord of last node location.

Definition at line 129 of file WaypointMovementGenerator.h.

Referenced by FlightPathMovementGenerator(), InitEndGridInfo(), and PreloadEndGrid().

◆ _preloadTargetNode

uint32 FlightPathMovementGenerator::_preloadTargetNode
private

map Id of last node location

Definition at line 130 of file WaypointMovementGenerator.h.

Referenced by DoUpdate(), FlightPathMovementGenerator(), InitEndGridInfo(), and PreloadEndGrid().


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