TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
 

Constructor & Destructor Documentation

TransportTemplate::TransportTemplate ( )
inline
71 : inInstance(false), pathTime(0), accelTime(0.0f), accelDist(0.0f), entry(0) { }
uint32 entry
Definition: TransportMgr.h:80
float accelTime
Definition: TransportMgr.h:78
bool inInstance
Definition: TransportMgr.h:75
uint32 pathTime
Definition: TransportMgr.h:76
float accelDist
Definition: TransportMgr.h:79
TransportTemplate::~TransportTemplate ( )
24 {
25  // Collect shared pointers into a set to avoid deleting the same memory more than once
26  std::set<TransportSpline*> splines;
27  for (size_t i = 0; i < keyFrames.size(); ++i)
28  splines.insert(keyFrames[i].Spline);
29 
30  for (std::set<TransportSpline*>::iterator itr = splines.begin(); itr != splines.end(); ++itr)
31  delete *itr;
32 }
KeyFrameVec keyFrames
Definition: TransportMgr.h:77

Member Data Documentation

float TransportTemplate::accelDist
float TransportTemplate::accelTime
uint32 TransportTemplate::entry
bool TransportTemplate::inInstance
KeyFrameVec TransportTemplate::keyFrames
std::set<uint32> TransportTemplate::mapsUsed
uint32 TransportTemplate::pathTime

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