OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions | Variables
obstacle.cpp File Reference
#include "obstacle.hpp"
#include <components/esm/loadcell.hpp>
#include "../mwbase/world.hpp"
#include "../mwworld/class.hpp"
#include "../mwworld/cellstore.hpp"
#include "movement.hpp"
Include dependency graph for obstacle.cpp:

Namespaces

 MWMechanics
 Game mechanics and NPC-AI.
 

Functions

bool MWMechanics::proximityToDoor (const MWWorld::Ptr &actor, float minSqr=MIN_DIST_TO_DOOR_SQUARED)
 tests actor's proximity to a closed door by default More...
 
MWWorld::Ptr MWMechanics::getNearbyDoor (const MWWorld::Ptr &actor, float minSqr=MIN_DIST_TO_DOOR_SQUARED)
 Returns door pointer within range. No guarantee is given as to which one. More...
 

Variables

static const float MWMechanics::DIST_SAME_SPOT = 0.5f
 
static const float MWMechanics::DURATION_SAME_SPOT = 1.5f
 
static const float MWMechanics::DURATION_TO_EVADE = 0.4f