OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions
pathfinding.cpp File Reference
#include "pathfinding.hpp"
#include <limits>
#include "../mwbase/world.hpp"
#include "../mwbase/environment.hpp"
#include "../mwworld/esmstore.hpp"
#include "../mwworld/cellstore.hpp"
#include "coordinateconverter.hpp"
Include dependency graph for pathfinding.cpp:

Namespaces

 anonymous_namespace{pathfinding.cpp}
 
 MWMechanics
 Game mechanics and NPC-AI.
 

Functions

std::pair< int, boolanonymous_namespace{pathfinding.cpp}::getClosestReachablePoint (const ESM::Pathgrid *grid, const MWWorld::CellStore *cell, const osg::Vec3f pos, int start)
 
float MWMechanics::sqrDistanceIgnoreZ (const ESM::Pathgrid::Point &point, float x, float y)
 
float MWMechanics::distance (const ESM::Pathgrid::Point &point, float x, float y, float z)
 
float MWMechanics::distance (const ESM::Pathgrid::Point &a, const ESM::Pathgrid::Point &b)
 
float MWMechanics::getZAngleToDir (const osg::Vec3f &dir)
 
float MWMechanics::getXAngleToDir (const osg::Vec3f &dir)
 
float MWMechanics::getZAngleToPoint (const ESM::Pathgrid::Point &origin, const ESM::Pathgrid::Point &dest)
 
float MWMechanics::getXAngleToPoint (const ESM::Pathgrid::Point &origin, const ESM::Pathgrid::Point &dest)
 
bool MWMechanics::checkWayIsClear (const osg::Vec3f &from, const osg::Vec3f &to, float offsetXY)