AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
PathGenerator.h File Reference
#include "DetourNavMesh.h"
#include "DetourNavMeshQuery.h"
#include "MMapMgr.h"
#include "MapDefines.h"
#include "MoveSplineInitArgs.h"
#include "SharedDefines.h"
#include <G3D/Vector3.h>

Go to the source code of this file.

Classes

class  PathGenerator
 

Macros

#define MAX_PATH_LENGTH   74
 
#define MAX_POINT_PATH_LENGTH   74
 
#define SMOOTH_PATH_STEP_SIZE   4.0f
 
#define SMOOTH_PATH_SLOP   0.3f
 
#define DISALLOW_TIME_AFTER_FAIL   3
 
#define VERTEX_SIZE   3
 
#define INVALID_POLYREF   0
 

Enumerations

enum  PathType {
  PATHFIND_BLANK = 0x00 ,
  PATHFIND_NORMAL = 0x01 ,
  PATHFIND_SHORTCUT = 0x02 ,
  PATHFIND_INCOMPLETE = 0x04 ,
  PATHFIND_NOPATH = 0x08 ,
  PATHFIND_NOT_USING_PATH = 0x10 ,
  PATHFIND_SHORT = 0x20 ,
  PATHFIND_FARFROMPOLY_START = 0x40 ,
  PATHFIND_FARFROMPOLY_END = 0x80 ,
  PATHFIND_FARFROMPOLY = PATHFIND_FARFROMPOLY_START | PATHFIND_FARFROMPOLY_END
}
 

Macro Definition Documentation

◆ DISALLOW_TIME_AFTER_FAIL

#define DISALLOW_TIME_AFTER_FAIL   3

◆ INVALID_POLYREF

#define INVALID_POLYREF   0

◆ MAX_PATH_LENGTH

#define MAX_PATH_LENGTH   74

◆ MAX_POINT_PATH_LENGTH

#define MAX_POINT_PATH_LENGTH   74

◆ SMOOTH_PATH_SLOP

#define SMOOTH_PATH_SLOP   0.3f

◆ SMOOTH_PATH_STEP_SIZE

#define SMOOTH_PATH_STEP_SIZE   4.0f

◆ VERTEX_SIZE

#define VERTEX_SIZE   3

Enumeration Type Documentation

◆ PathType

enum PathType
Enumerator
PATHFIND_BLANK 
PATHFIND_NORMAL 
PATHFIND_SHORTCUT 
PATHFIND_INCOMPLETE 
PATHFIND_NOPATH 
PATHFIND_NOT_USING_PATH 
PATHFIND_SHORT 
PATHFIND_FARFROMPOLY_START 
PATHFIND_FARFROMPOLY_END 
PATHFIND_FARFROMPOLY 
45{
46 PATHFIND_BLANK = 0x00, // path not built yet
47 PATHFIND_NORMAL = 0x01, // normal path
48 PATHFIND_SHORTCUT = 0x02, // travel through obstacles, terrain, air, etc (old behavior)
49 PATHFIND_INCOMPLETE = 0x04, // we have partial path to follow - getting closer to target
50 PATHFIND_NOPATH = 0x08, // no valid path at all or error in generating one
51 PATHFIND_NOT_USING_PATH = 0x10, // used when we are either flying/swiming or on map w/o mmaps
52 PATHFIND_SHORT = 0x20, // path is longer or equal to its limited path length
53 PATHFIND_FARFROMPOLY_START = 0x40, // start position is far from the mmap poligon
54 PATHFIND_FARFROMPOLY_END = 0x80, // end positions is far from the mmap poligon
55 PATHFIND_FARFROMPOLY = PATHFIND_FARFROMPOLY_START | PATHFIND_FARFROMPOLY_END, // start or end positions are far from the mmap poligon
56};
@ PATHFIND_FARFROMPOLY_END
Definition: PathGenerator.h:54
@ PATHFIND_NOT_USING_PATH
Definition: PathGenerator.h:51
@ PATHFIND_NORMAL
Definition: PathGenerator.h:47
@ PATHFIND_NOPATH
Definition: PathGenerator.h:50
@ PATHFIND_FARFROMPOLY_START
Definition: PathGenerator.h:53
@ PATHFIND_FARFROMPOLY
Definition: PathGenerator.h:55
@ PATHFIND_SHORT
Definition: PathGenerator.h:52
@ PATHFIND_SHORTCUT
Definition: PathGenerator.h:48
@ PATHFIND_BLANK
Definition: PathGenerator.h:46
@ PATHFIND_INCOMPLETE
Definition: PathGenerator.h:49