File diff r4548:6a33e364fba5 → r4549:76b9213799ac
yapf/yapf_common.hpp
Show inline comments
 
@@ -129,7 +129,7 @@ public:
 
	}
 

	
 
	/** Called by YAPF to calculate cost estimate. Calculates distance to the destination
 
	*   adds it to the actual cost from origin and stores the sum to the Node::m_estimate */
 
	 *  adds it to the actual cost from origin and stores the sum to the Node::m_estimate */
 
	inline bool PfCalcEstimate(Node& n)
 
	{
 
		int dx = abs(TileX(n.GetTile()) - TileX(m_destTile));
 
@@ -144,9 +144,9 @@ public:
 
};
 

	
 
/** YAPF template that uses Ttypes template argument to determine all YAPF
 
*   components (base classes) from which the actual YAPF is composed.
 
*   For example classes consult: CYapfRail_TypesT template and its instantiations:
 
*   CYapfRail1, CYapfRail2, CYapfRail3, CYapfAnyDepotRail1, CYapfAnyDepotRail2, CYapfAnyDepotRail3 */
 
 *  components (base classes) from which the actual YAPF is composed.
 
 *  For example classes consult: CYapfRail_TypesT template and its instantiations:
 
 *  CYapfRail1, CYapfRail2, CYapfRail3, CYapfAnyDepotRail1, CYapfAnyDepotRail2, CYapfAnyDepotRail3 */
 
template <class Ttypes>
 
class CYapfT
 
	: public Ttypes::PfBase         ///< Instance of CYapfBaseT - main YAPF loop and support base class