OpenMW
Public Member Functions | Private Attributes
MWMechanics::PathFinder Class Reference

#include <pathfinding.hpp>

List of all members.

Public Member Functions

 PathFinder ()
void clearPath ()
void buildPath (const ESM::Pathgrid::Point &startPoint, const ESM::Pathgrid::Point &endPoint, const ESM::Pathgrid *pathGrid, float xCell=0, float yCell=0, bool allowShortcuts=true)
bool checkPathCompleted (float x, float y, float z)
 true if the last point of the path has been reached.
bool checkWaypoint (float x, float y, float z)
 true if a way point was reached
float getZAngleToNext (float x, float y) const
bool isPathConstructed () const
int getPathSize () const
std::list< ESM::Pathgrid::PointgetPath () const

Private Attributes

std::list< ESM::Pathgrid::PointmPath
bool mIsPathConstructed

Constructor & Destructor Documentation


Member Function Documentation

void MWMechanics::PathFinder::buildPath ( const ESM::Pathgrid::Point startPoint,
const ESM::Pathgrid::Point endPoint,
const ESM::Pathgrid pathGrid,
float  xCell = 0,
float  yCell = 0,
bool  allowShortcuts = true 
)
bool MWMechanics::PathFinder::checkPathCompleted ( float  x,
float  y,
float  z 
)

true if the last point of the path has been reached.

bool MWMechanics::PathFinder::checkWaypoint ( float  x,
float  y,
float  z 
)

true if a way point was reached

int MWMechanics::PathFinder::getPathSize ( ) const [inline]
float MWMechanics::PathFinder::getZAngleToNext ( float  x,
float  y 
) const

Member Data Documentation


The documentation for this class was generated from the following files: