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

#include "TransportMgr.h"

Public Member Functions

 TransportTemplate ()
 
 ~TransportTemplate ()
 

Public Attributes

std::set< uint32mapsUsed
 
bool inInstance
 
uint32 pathTime
 
KeyFrameVec keyFrames
 
float accelTime
 
float accelDist
 
uint32 entry
 

Detailed Description

Constructor & Destructor Documentation

◆ TransportTemplate()

TransportTemplate::TransportTemplate ( )
inline
72: inInstance(false), pathTime(0), accelTime(0.0f), accelDist(0.0f), entry(0) { }
float accelDist
Definition: TransportMgr.h:80
uint32 entry
Definition: TransportMgr.h:81
bool inInstance
Definition: TransportMgr.h:76
uint32 pathTime
Definition: TransportMgr.h:77
float accelTime
Definition: TransportMgr.h:79

◆ ~TransportTemplate()

TransportTemplate::~TransportTemplate ( )
26{
27 // Collect shared pointers into a set to avoid deleting the same memory more than once
28 std::set<TransportSpline*> splines;
29 for (std::size_t i = 0; i < keyFrames.size(); ++i)
30 splines.insert(keyFrames[i].Spline);
31
32 for (std::set<TransportSpline*>::iterator itr = splines.begin(); itr != splines.end(); ++itr)
33 delete *itr;
34}
KeyFrameVec keyFrames
Definition: TransportMgr.h:78

References keyFrames.

Member Data Documentation

◆ accelDist

float TransportTemplate::accelDist

◆ accelTime

float TransportTemplate::accelTime

◆ entry

uint32 TransportTemplate::entry

◆ inInstance

◆ keyFrames

◆ mapsUsed

std::set<uint32> TransportTemplate::mapsUsed

◆ pathTime

uint32 TransportTemplate::pathTime