Emergency 2017 Dokumentation  v3.0.1
qsf::ai::direction Namespace Reference

Enumerations

enum  OneDimensional { ANY, FORWARD, BACKWARD, BOTH }
 
enum  TwoDimensional {
  NORTH, NORTH_EAST, EAST, SOUTH_EAST,
  SOUTH, SOUTH_WEST, WEST, NORTH_WEST
}
 

Functions

QSF_AI_API_EXPORT unsigned int getDistance (TwoDimensional dirA, TwoDimensional dirB)
 
bool isFourConnected (TwoDimensional dir)
 

Variables

const unsigned int NUM_ONE_DIRECTIONAL_OPTIONS = BOTH + 1
 
const unsigned int NUM_TWO_DIRECTIONAL_OPTIONS = NORTH_WEST + 1
 

Enumeration Type Documentation

Enumerator
ANY 
FORWARD 
BACKWARD 
BOTH 

Definition at line 23 of file Direction.h.

Enumerator
NORTH 
NORTH_EAST 
EAST 
SOUTH_EAST 
SOUTH 
SOUTH_WEST 
WEST 
NORTH_WEST 

Definition at line 34 of file Direction.h.

Function Documentation

QSF_AI_API_EXPORT unsigned int qsf::ai::direction::getDistance ( TwoDimensional  dirA,
TwoDimensional  dirB 
)
bool qsf::ai::direction::isFourConnected ( TwoDimensional  dir)

Variable Documentation

const unsigned int qsf::ai::direction::NUM_ONE_DIRECTIONAL_OPTIONS = BOTH + 1

Definition at line 30 of file Direction.h.

const unsigned int qsf::ai::direction::NUM_TWO_DIRECTIONAL_OPTIONS = NORTH_WEST + 1

Definition at line 45 of file Direction.h.