(svn r5033) -CodeChange: [YAPF] RoadFindPathToStop() can now use YAPF for multistop handling.

This commit is contained in:
KUDr
2006-05-30 10:53:27 +00:00
parent ed48b38619
commit d72ebf6ca3
6 changed files with 88 additions and 15 deletions

View File

@@ -57,7 +57,7 @@ protected:
Node* m_pBestIntermediateNode; ///< here should be node closest to the destination if path not found
const YapfSettings *m_settings; ///< current settings (_patches.yapf)
int m_max_search_nodes; ///< maximum number of nodes we are allowed to visit before we give up
Vehicle* m_veh; ///< vehicle that we are trying to drive
const Vehicle* m_veh; ///< vehicle that we are trying to drive
int m_stats_cost_calcs; ///< stats - how many node's costs were calculated
int m_stats_cache_hits; ///< stats - how many node's costs were reused from cache
@@ -111,7 +111,7 @@ public:
- or the open list is empty (no route to destination).
- or the maximum amount of loops reached - m_max_search_nodes (default = 10000)
@return true if the path was found */
inline bool FindPath(Vehicle* v)
inline bool FindPath(const Vehicle* v)
{
m_veh = v;
@@ -271,7 +271,7 @@ public:
m_nodes.InsertOpenNode(n);
}
Vehicle* GetVehicle() const {return m_veh;}
const Vehicle* GetVehicle() const {return m_veh;}
// methods that should be implemented at derived class Types::Tpf (derived from CYapfBaseT)