structfound_goal{};// exception for termination// visitor that terminates when we find the goaltemplate<classVertex>classastar_goal_visitor:publicboost::default_astar_visitor{public:astar_goal_visitor(Vertexgoal):m_goal(goal){}template<classGraph>voidexamine_vertex(Vertexu,Graph&g){if(u==m_goal)throwfound_goal();}private:Vertexm_goal;};
Ce post est offensant ? Prévenez moi sur https://linuxfr.org/board
[^] # Re: Je n'aime pas la SFML
Posté par devnewton 🍺 (site web personnel) . En réponse à la dépêche SDL ou SFML ? Ne choisissez plus, prenez Gamedev Framework (gf). Évalué à 2. Dernière modification le 21 juillet 2016 à 15:43.
http://www.boost.org/doc/libs/1_52_0/libs/graph/example/astar-cities.cpp
Ce post est offensant ? Prévenez moi sur https://linuxfr.org/board