AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
KeyFrame Struct Reference

#include "TransportMgr.h"

Public Member Functions

 KeyFrame (TaxiPathNodeEntry const *node)
 
bool IsTeleportFrame () const
 
bool IsStopFrame () const
 

Public Attributes

uint32 Index
 
TaxiPathNodeEntry const * Node
 
float InitialOrientation
 
float DistSinceStop
 
float DistUntilStop
 
float DistFromPrev
 
float TimeFrom
 
float TimeTo
 
bool Teleport
 
uint32 ArriveTime
 
uint32 DepartureTime
 
TransportSplineSpline
 
float NextDistFromPrev
 
uint32 NextArriveTime
 

Detailed Description

Constructor & Destructor Documentation

◆ KeyFrame()

KeyFrame::KeyFrame ( TaxiPathNodeEntry const *  node)
inlineexplicit
43 : Index(0), Node(node), InitialOrientation(0.0f),
44 DistSinceStop(-1.0f), DistUntilStop(-1.0f), DistFromPrev(-1.0f), TimeFrom(0.0f), TimeTo(0.0f),
45 Teleport(false), ArriveTime(0), DepartureTime(0), Spline(nullptr), NextDistFromPrev(0.0f), NextArriveTime(0)
46 {
47 }
float DistUntilStop
Definition: TransportMgr.h:53
uint32 Index
Definition: TransportMgr.h:49
float NextDistFromPrev
Definition: TransportMgr.h:63
float DistFromPrev
Definition: TransportMgr.h:54
uint32 NextArriveTime
Definition: TransportMgr.h:64
float DistSinceStop
Definition: TransportMgr.h:52
float InitialOrientation
Definition: TransportMgr.h:51
uint32 DepartureTime
Definition: TransportMgr.h:59
TaxiPathNodeEntry const * Node
Definition: TransportMgr.h:50
bool Teleport
Definition: TransportMgr.h:57
float TimeFrom
Definition: TransportMgr.h:55
float TimeTo
Definition: TransportMgr.h:56
TransportSpline * Spline
Definition: TransportMgr.h:60
uint32 ArriveTime
Definition: TransportMgr.h:58

Member Function Documentation

◆ IsStopFrame()

bool KeyFrame::IsStopFrame ( ) const
inline
67{ return Node->actionFlag == 2; }
uint32 actionFlag
Definition: DBCStructure.h:1980

References TaxiPathNodeEntry::actionFlag, and Node.

◆ IsTeleportFrame()

bool KeyFrame::IsTeleportFrame ( ) const
inline
66{ return Teleport; }

References Teleport.

Member Data Documentation

◆ ArriveTime

uint32 KeyFrame::ArriveTime

◆ DepartureTime

uint32 KeyFrame::DepartureTime

◆ DistFromPrev

float KeyFrame::DistFromPrev

◆ DistSinceStop

float KeyFrame::DistSinceStop

◆ DistUntilStop

float KeyFrame::DistUntilStop

◆ Index

uint32 KeyFrame::Index

◆ InitialOrientation

float KeyFrame::InitialOrientation

◆ NextArriveTime

uint32 KeyFrame::NextArriveTime

◆ NextDistFromPrev

float KeyFrame::NextDistFromPrev

◆ Node

◆ Spline

TransportSpline* KeyFrame::Spline

◆ Teleport

bool KeyFrame::Teleport

Referenced by IsTeleportFrame().

◆ TimeFrom

float KeyFrame::TimeFrom

◆ TimeTo

float KeyFrame::TimeTo