Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::component::PathFinder Struct Reference

Component that dynamically navigates an entity to a specific tile. The entities Controllable component is locked so that only path finding controls it. More...

#include <PathFinder.hpp>

Public Member Functions

 PathFinder (const bl::tmap::Position &dest)
 Construct a new Path Finder object. More...
 

Public Attributes

bl::tmap::Position destination
 
std::vector< bl::tmap::Position > path
 
unsigned int step
 

Detailed Description

Component that dynamically navigates an entity to a specific tile. The entities Controllable component is locked so that only path finding controls it.

Definition at line 18 of file PathFinder.hpp.

Constructor & Destructor Documentation

◆ PathFinder()

core::component::PathFinder::PathFinder ( const bl::tmap::Position &  dest)
inline

Construct a new Path Finder object.

Parameters
destThe destination to navigate to

Definition at line 24 of file PathFinder.hpp.

Member Data Documentation

◆ destination

bl::tmap::Position core::component::PathFinder::destination

Definition at line 28 of file PathFinder.hpp.

◆ path

std::vector<bl::tmap::Position> core::component::PathFinder::path

Definition at line 29 of file PathFinder.hpp.

◆ step

unsigned int core::component::PathFinder::step

Definition at line 30 of file PathFinder.hpp.


The documentation for this struct was generated from the following file: