Home
last modified time | relevance | path

Searched refs:SpeedBinType (Results 1 – 3 of 3) sorted by relevance

/dports/games/spring/spring_98.0/rts/Sim/Path/QTPFS/
H A DNodeLayer.hpp33 typedef unsigned char SpeedBinType; typedef
37 static size_t MaxSpeedBinTypeValue() { return (std::numeric_limits<SpeedBinType>::max()); } in MaxSpeedBinTypeValue()
69 const std::vector<SpeedBinType>& GetOldSpeedBins() const { return oldSpeedBins; } in GetOldSpeedBins()
70 const std::vector<SpeedBinType>& GetCurSpeedBins() const { return curSpeedBins; } in GetCurSpeedBins()
83 SpeedBinType GetSpeedModBin(float absSpeedMod, float relSpeedMod) const;
89 memFootPrint += (curSpeedBins.size() * sizeof(SpeedBinType)); in GetMemFootPrint()
90 memFootPrint += (oldSpeedBins.size() * sizeof(SpeedBinType)); in GetMemFootPrint()
100 std::vector<SpeedBinType> curSpeedBins;
101 std::vector<SpeedBinType> oldSpeedBins;
H A DNodeLayer.cpp172 const SpeedBinType newSpeedModBin = GetSpeedModBin(newAbsSpeedMod, newRelSpeedMod); in Update()
173 const SpeedBinType curSpeedModBin = curSpeedBins[sqrIdx]; in Update()
211 QTPFS::NodeLayer::SpeedBinType QTPFS::NodeLayer::GetSpeedModBin(float absSpeedMod, float relSpeedMo… in GetSpeedModBin()
215 const SpeedBinType defBin = NUM_SPEEDMOD_BINS * relSpeedMod; in GetSpeedModBin()
216 const SpeedBinType maxBin = NUM_SPEEDMOD_BINS - 1; in GetSpeedModBin()
218 SpeedBinType speedModBin = Clamp(defBin, static_cast<SpeedBinType>(0), maxBin); in GetSpeedModBin()
H A DNode.cpp520 const std::vector<NodeLayer::SpeedBinType>& oldSpeedBins = nl.GetOldSpeedBins(); in UpdateMoveCost()
521 const std::vector<NodeLayer::SpeedBinType>& curSpeedBins = nl.GetCurSpeedBins(); in UpdateMoveCost()
525 const NodeLayer::SpeedBinType refSpeedBin = curSpeedBins[zmin() * gs->mapx + xmin()]; in UpdateMoveCost()
553 const NodeLayer::SpeedBinType oldSpeedBin = oldSpeedBins[sqrIdx]; in UpdateMoveCost()
554 const NodeLayer::SpeedBinType curSpeedBin = curSpeedBins[sqrIdx]; in UpdateMoveCost()
573 const NodeLayer::SpeedBinType oldSpeedBin = oldSpeedBins[sqrIdx]; in UpdateMoveCost()
574 const NodeLayer::SpeedBinType curSpeedBin = curSpeedBins[sqrIdx]; in UpdateMoveCost()