TrinityCore
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Class List
Class Index
Class Hierarchy
Class Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Public Member Functions
|
Public Attributes
|
List of all members
TaxiPathGraph::EdgeCost Struct Reference
Public Member Functions
uint32
EvaluateDistance
(
Player
const
*player)
const
Public Attributes
TaxiNodesEntry
const
*
To
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))
186
return
std::numeric_limits<uint16>::max
();
187
188
//if (To->ConditionID && !player->MeetsCondition(To->ConditionID))
189
// return std::numeric_limits<uint16>::max();
190
191
return
Distance
;
192
}
TAXI_NODE_FLAG_HORDE
Definition:
DBCEnums.h:696
G3D::max
T max(const T &x, const T &y)
Definition:
g3dmath.h:320
ALLIANCE
Definition:
SharedDefines.h:1000
TAXI_NODE_FLAG_ALLIANCE
Definition:
DBCEnums.h:695
TaxiPathGraph::EdgeCost::Distance
uint32 Distance
Definition:
TaxiPathGraph.h:40
uint32
uint32_t uint32
Definition:
Define.h:150
TaxiPathGraph::EdgeCost::To
TaxiNodesEntry const * To
Definition:
TaxiPathGraph.h:39
TaxiNodesEntry::Flags
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:
src/server/game/Entities/Taxi/
TaxiPathGraph.h
src/server/game/Entities/Taxi/
TaxiPathGraph.cpp
Generated on Tue Apr 5 2016 20:27:53 for TrinityCore by
1.8.8