Recast Navigation
Navigation-mesh Toolset for Games
Loading...
Searching...
No Matches
Sample.h File Reference
#include "SampleInterfaces.h"
#include <cstdint>

Go to the source code of this file.

Classes

class  SampleDebugDraw
 
struct  SampleTool
 
struct  SampleToolState
 
class  Sample
 

Enumerations

enum class  SampleToolType : uint8_t {
  NONE = 0 , TILE_EDIT , TILE_HIGHLIGHT , TEMP_OBSTACLE ,
  NAVMESH_TESTER , NAVMESH_PRUNE , OFFMESH_CONNECTION , CONVEX_VOLUME ,
  CROWD , MAX_TOOLS
}
 Tool types. More...
 
enum  SamplePolyAreas {
  SAMPLE_POLYAREA_GROUND , SAMPLE_POLYAREA_WATER , SAMPLE_POLYAREA_ROAD , SAMPLE_POLYAREA_DOOR ,
  SAMPLE_POLYAREA_GRASS , SAMPLE_POLYAREA_JUMP
}
 These are just sample areas to use consistent values across the samples. More...
 
enum  SamplePolyFlags {
  SAMPLE_POLYFLAGS_WALK = 1 << 0 , SAMPLE_POLYFLAGS_SWIM = 1 << 1 , SAMPLE_POLYFLAGS_DOOR = 1 << 2 , SAMPLE_POLYFLAGS_JUMP = 1 << 3 ,
  SAMPLE_POLYFLAGS_DISABLED = 1 << 4 , SAMPLE_POLYFLAGS_ALL = ~0
}
 
enum class  SamplePartitionType : uint8_t { WATERSHED , MONOTONE , LAYERS }
 

Variables

const char * toolNames []
 

Enumeration Type Documentation

◆ SamplePartitionType

enum class SamplePartitionType : uint8_t
strong
Enumerator
WATERSHED 
MONOTONE 
LAYERS 

◆ SamplePolyAreas

These are just sample areas to use consistent values across the samples.

The use should specify these base on his needs.

Enumerator
SAMPLE_POLYAREA_GROUND 
SAMPLE_POLYAREA_WATER 
SAMPLE_POLYAREA_ROAD 
SAMPLE_POLYAREA_DOOR 
SAMPLE_POLYAREA_GRASS 
SAMPLE_POLYAREA_JUMP 

◆ SamplePolyFlags

Enumerator
SAMPLE_POLYFLAGS_WALK 
SAMPLE_POLYFLAGS_SWIM 
SAMPLE_POLYFLAGS_DOOR 
SAMPLE_POLYFLAGS_JUMP 
SAMPLE_POLYFLAGS_DISABLED 
SAMPLE_POLYFLAGS_ALL 

◆ SampleToolType

enum class SampleToolType : uint8_t
strong

Tool types.

Enumerator
NONE 
TILE_EDIT 
TILE_HIGHLIGHT 
TEMP_OBSTACLE 
NAVMESH_TESTER 
NAVMESH_PRUNE 
OFFMESH_CONNECTION 
CONVEX_VOLUME 
CROWD 
MAX_TOOLS 

Variable Documentation

◆ toolNames

const char* toolNames[]
extern