1 #ifndef OPENMW_MECHANICS_OBSTACLE_H
2 #define OPENMW_MECHANICS_OBSTACLE_H
40 bool check(
const MWWorld::Ptr& actor,
float duration,
float scaleMinimumDistance = 1.0f);
Definition: obstacle.hpp:57
static const float evadeDirections[NUM_EVADE_DIRECTIONS][2]
Definition: obstacle.hpp:52
bool isEvading() const
Definition: obstacle.cpp:96
WalkState
Definition: obstacle.hpp:54
float mPrevY
Definition: obstacle.hpp:49
Definition: obstacle.hpp:56
Definition: obstacle.hpp:27
static const int NUM_EVADE_DIRECTIONS
Definition: obstacle.hpp:16
void chooseEvasionDirection()
Definition: obstacle.cpp:195
void clear()
Definition: obstacle.cpp:84
ObstacleCheck()
Definition: obstacle.cpp:73
Desired movement for an actor.
Definition: movement.hpp:9
bool check(const MWWorld::Ptr &actor, float duration, float scaleMinimumDistance=1.0f)
Definition: obstacle.cpp:123
Definition: obstacle.hpp:58
float mEvadeDuration
Definition: obstacle.hpp:63
float mStuckDuration
Definition: obstacle.hpp:62
bool isNormalState() const
Definition: obstacle.cpp:91
MWWorld::Ptr getNearbyDoor(const MWWorld::Ptr &actor, float minSqr)
Returns door pointer within range. No guarantee is given as to which one.
Definition: obstacle.cpp:39
bool proximityToDoor(const MWWorld::Ptr &actor, float minSqr)
tests actor's proximity to a closed door by default
Definition: obstacle.cpp:31
int mEvadeDirectionIndex
Definition: obstacle.hpp:65
float mPrevX
Definition: obstacle.hpp:48
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
WalkState mWalkState
Definition: obstacle.hpp:60
static const float MIN_DIST_TO_DOOR_SQUARED
NOTE: determined empirically based on in-game behaviour.
Definition: obstacle.hpp:14
void takeEvasiveAction(MWMechanics::Movement &actorMovement)
Definition: obstacle.cpp:189
float mDistSameSpot
Definition: obstacle.hpp:64