# First iteration of low-level pathfinder

PathfindSparse replaced with an A* implementation.  Low-level
pathfinding done on the tiles of the map, high level pathfinding is
currently a placeholder, and only gives the final waypoint.

This was SVN commit r3747.
This commit is contained in:
kevmo
2006-04-10 22:05:21 +00:00
parent 7e6fd7f199
commit bd431d25f6
6 changed files with 356 additions and 25 deletions
+4 -2
View File
@@ -592,7 +592,7 @@ bool CEntity::processGoto( CEntityOrder* current, size_t UNUSED(timestep_millis)
return( true );
}
bool CEntity::processGotoWaypoint( CEntityOrder* current, size_t UNUSED(timestep_milli) )
bool CEntity::processGotoWaypoint( CEntityOrder* current, size_t UNUSED(timestep_milli), bool contact )
{
CVector2D pos( m_position.X, m_position.Z );
CVector2D path_to = current->m_data[0].location;
@@ -607,7 +607,9 @@ bool CEntity::processGotoWaypoint( CEntityOrder* current, size_t UNUSED(timestep
return( false );
}
g_Pathfinder.requestLowLevelPath( me, path_to );
processChooseMovement( Distance );
g_Pathfinder.requestLowLevelPath( me, path_to, contact );
return( true );
}