TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TaxiPathGraph::EdgeCost Struct Reference

Public Member Functions

uint32 EvaluateDistance (Player const *player) const
 

Public Attributes

TaxiNodesEntry constTo
 
uint32 Distance
 

Member Function Documentation

uint32 TaxiPathGraph::EdgeCost::EvaluateDistance ( Player const player) const
183 {
184  uint32 requireFlag = (player->GetTeam() == ALLIANCE) ? TAXI_NODE_FLAG_ALLIANCE : TAXI_NODE_FLAG_HORDE;
185  if (!(To->Flags & requireFlag))
187 
188  //if (To->ConditionID && !player->MeetsCondition(To->ConditionID))
189  // return std::numeric_limits<uint16>::max();
190 
191  return Distance;
192 }
Definition: DBCEnums.h:696
T max(const T &x, const T &y)
Definition: g3dmath.h:320
Definition: SharedDefines.h:1000
Definition: DBCEnums.h:695
uint32 Distance
Definition: TaxiPathGraph.h:40
uint32_t uint32
Definition: Define.h:150
TaxiNodesEntry const * To
Definition: TaxiPathGraph.h:39
uint32 Flags
Definition: DB2Structure.h:1333

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32 TaxiPathGraph::EdgeCost::Distance
TaxiNodesEntry const* TaxiPathGraph::EdgeCost::To

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