Peoplemon  0.1.0
Peoplemon 3 game source documentation
PathFinder.hpp
Go to the documentation of this file.
1 #ifndef CORE_COMPONENTS_PATHFINDER_HPP
2 #define CORE_COMPONENTS_PATHFINDER_HPP
3 
4 #include <BLIB/Tilemap/Position.hpp>
5 #include <vector>
6 
7 namespace core
8 {
9 namespace component
10 {
18 struct PathFinder {
24  PathFinder(const bl::tmap::Position& dest)
25  : destination(dest)
26  , step(0) {}
27 
28  bl::tmap::Position destination;
29  std::vector<bl::tmap::Position> path;
30  unsigned int step;
31 };
32 
33 } // namespace component
34 } // namespace core
35 
36 #endif
Core classes and functionality for both the editor and game.
Component that dynamically navigates an entity to a specific tile. The entities Controllable componen...
Definition: PathFinder.hpp:18
bl::tmap::Position destination
Definition: PathFinder.hpp:28
std::vector< bl::tmap::Position > path
Definition: PathFinder.hpp:29
PathFinder(const bl::tmap::Position &dest)
Construct a new Path Finder object.
Definition: PathFinder.hpp:24