Emergency 20 Dokumentation  4.2.0
qsf::ai::steering::SteeringControlPoint Class Reference

#include <SteeringControlPoint.h>

Public Types

enum  Reaction {
  NONE = 0, PAUSE = 1 << 0, DEMOTE_HALTING_POINT = 1 << 1, DO_NOT_REMOVE = 1 << 2,
  REGISTER_AT_NEXT_WAYPOINT = 1 << 3 | DO_NOT_REMOVE, SELECT_NEXT_PATH_WAYPOINT = 1 << 4 | REGISTER_AT_NEXT_WAYPOINT | DO_NOT_REMOVE, ADAPT_PATH = 1 << 5, FAIL_PATH = 1 << 6
}
 

Public Member Functions

 SteeringControlPoint (Time reached, UnsignedFloat desiredSpeed, const glm::vec3 &wpPos, const glm::vec3 &wpDirection, UnsignedFloat distance, UnsignedFloat maxSegmentSpeed, Reaction reaction, bool isMovingForward, float accelerationUsed, const detail::ReservationContainerEntry &reservation, const boost::optional< TurningConfiguration > &turningConfig)
 
void setPositionSafe (const glm::vec3 &vec)
 

Public Attributes

Time mTimeToReach
 
UnsignedFloat mDesiredSpeed
 
float mAccelerationUsed
 
glm::vec3 mPosition
 
glm::vec3 mDirection
 
UnsignedFloat mDistance
 
UnsignedFloat mMaxSegmentSpeed
 
unsigned int mReaction
 
bool mIsMovingForward
 
detail::ReservationContainerEntry mReservation
 
boost::optional< TurningConfigurationmTurningConfiguration
 
BrakingReason mBrakingReason
 

Static Public Attributes

static const UnsignedFloat MAX_PATH_DEVIATION
 
static const UnsignedFloat MAX_SQUARED_PATH_DEVIATION
 

Member Enumeration Documentation

Enumerator
NONE 
PAUSE 
DEMOTE_HALTING_POINT 
DO_NOT_REMOVE 
REGISTER_AT_NEXT_WAYPOINT 
SELECT_NEXT_PATH_WAYPOINT 
ADAPT_PATH 
FAIL_PATH 

Constructor & Destructor Documentation

qsf::ai::steering::SteeringControlPoint::SteeringControlPoint ( Time  reached,
UnsignedFloat  desiredSpeed,
const glm::vec3 &  wpPos,
const glm::vec3 &  wpDirection,
UnsignedFloat  distance,
UnsignedFloat  maxSegmentSpeed,
Reaction  reaction,
bool  isMovingForward,
float  accelerationUsed,
const detail::ReservationContainerEntry reservation,
const boost::optional< TurningConfiguration > &  turningConfig 
)
inline

Member Function Documentation

void qsf::ai::steering::SteeringControlPoint::setPositionSafe ( const glm::vec3 &  vec)
inline

Member Data Documentation

float qsf::ai::steering::SteeringControlPoint::mAccelerationUsed
const UnsignedFloat qsf::ai::steering::SteeringControlPoint::MAX_PATH_DEVIATION
static
const UnsignedFloat qsf::ai::steering::SteeringControlPoint::MAX_SQUARED_PATH_DEVIATION
static
BrakingReason qsf::ai::steering::SteeringControlPoint::mBrakingReason
UnsignedFloat qsf::ai::steering::SteeringControlPoint::mDesiredSpeed
glm::vec3 qsf::ai::steering::SteeringControlPoint::mDirection
UnsignedFloat qsf::ai::steering::SteeringControlPoint::mDistance
bool qsf::ai::steering::SteeringControlPoint::mIsMovingForward
UnsignedFloat qsf::ai::steering::SteeringControlPoint::mMaxSegmentSpeed
glm::vec3 qsf::ai::steering::SteeringControlPoint::mPosition
unsigned int qsf::ai::steering::SteeringControlPoint::mReaction
detail::ReservationContainerEntry qsf::ai::steering::SteeringControlPoint::mReservation
Time qsf::ai::steering::SteeringControlPoint::mTimeToReach
boost::optional<TurningConfiguration> qsf::ai::steering::SteeringControlPoint::mTurningConfiguration

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