Planeshift
Classes | Public Member Functions

dtTileCache Class Reference

#include <DetourTileCache.h>

List of all members.

Classes

struct  ObstacleRequest

Public Member Functions

dtStatus addObstacle (const float *pos, const float radius, const float height, dtObstacleRef *result)
dtStatus addTile (unsigned char *data, const int dataSize, unsigned char flags, dtCompressedTileRef *result)
dtStatus buildNavMeshTile (const dtCompressedTileRef ref, class dtNavMesh *navmesh)
dtStatus buildNavMeshTilesAt (const int tx, const int ty, class dtNavMesh *navmesh)
void calcTightTileBounds (const struct dtTileCacheLayerHeader *header, float *bmin, float *bmax) const
unsigned int decodeObstacleIdObstacle (dtObstacleRef ref) const
 Decodes an obstacle id.
unsigned int decodeObstacleIdSalt (dtObstacleRef ref) const
 Decodes an obstacle salt.
unsigned int decodeTileIdSalt (dtCompressedTileRef ref) const
 Decodes a tile salt.
unsigned int decodeTileIdTile (dtCompressedTileRef ref) const
 Decodes a tile id.
 dtTileCache ()
dtObstacleRef encodeObstacleId (unsigned int salt, unsigned int it) const
 Encodes an obstacle id.
dtCompressedTileRef encodeTileId (unsigned int salt, unsigned int it) const
 Encodes a tile id.
struct dtTileCacheAllocgetAlloc ()
struct dtTileCacheCompressorgetCompressor ()
const dtTileCacheObstaclegetObstacle (const int i) const
void getObstacleBounds (const struct dtTileCacheObstacle *ob, float *bmin, float *bmax) const
const dtTileCacheObstaclegetObstacleByRef (dtObstacleRef ref)
int getObstacleCount () const
dtObstacleRef getObstacleRef (const dtTileCacheObstacle *obmin) const
const dtTileCacheParamsgetParams () const
const dtCompressedTilegetTile (const int i) const
dtCompressedTilegetTileAt (const int tx, const int ty, const int tlayer)
const dtCompressedTilegetTileByRef (dtCompressedTileRef ref) const
int getTileCount () const
dtCompressedTileRef getTileRef (const dtCompressedTile *tile) const
int getTilesAt (const int tx, const int ty, dtCompressedTileRef *tiles, const int maxTiles) const
dtStatus init (const dtTileCacheParams *params, struct dtTileCacheAlloc *talloc, struct dtTileCacheCompressor *tcomp, struct dtTileCacheMeshProcess *tmproc)
dtStatus queryTiles (const float *bmin, const float *bmax, dtCompressedTileRef *results, int *resultCount, const int maxResults) const
dtStatus removeObstacle (const dtObstacleRef ref)
dtStatus removeTile (dtCompressedTileRef ref, unsigned char **data, int *dataSize)
dtStatus update (const float, class dtNavMesh *navmesh)
 ~dtTileCache ()

Detailed Description

Definition at line 71 of file DetourTileCache.h.


Constructor & Destructor Documentation

dtTileCache::dtTileCache ( )
dtTileCache::~dtTileCache ( )

Member Function Documentation

dtStatus dtTileCache::addObstacle ( const float pos,
const float  radius,
const float  height,
dtObstacleRef result 
)
dtStatus dtTileCache::addTile ( unsigned char *  data,
const int  dataSize,
unsigned char  flags,
dtCompressedTileRef result 
)
dtStatus dtTileCache::buildNavMeshTile ( const dtCompressedTileRef  ref,
class dtNavMesh navmesh 
)
dtStatus dtTileCache::buildNavMeshTilesAt ( const int  tx,
const int  ty,
class dtNavMesh navmesh 
)
void dtTileCache::calcTightTileBounds ( const struct dtTileCacheLayerHeader header,
float bmin,
float bmax 
) const
unsigned int dtTileCache::decodeObstacleIdObstacle ( dtObstacleRef  ref) const [inline]

Decodes an obstacle id.

Definition at line 157 of file DetourTileCache.h.

unsigned int dtTileCache::decodeObstacleIdSalt ( dtObstacleRef  ref) const [inline]

Decodes an obstacle salt.

Definition at line 150 of file DetourTileCache.h.

unsigned int dtTileCache::decodeTileIdSalt ( dtCompressedTileRef  ref) const [inline]

Decodes a tile salt.

Definition at line 130 of file DetourTileCache.h.

unsigned int dtTileCache::decodeTileIdTile ( dtCompressedTileRef  ref) const [inline]

Decodes a tile id.

Definition at line 137 of file DetourTileCache.h.

dtObstacleRef dtTileCache::encodeObstacleId ( unsigned int  salt,
unsigned int  it 
) const [inline]

Encodes an obstacle id.

Definition at line 144 of file DetourTileCache.h.

dtCompressedTileRef dtTileCache::encodeTileId ( unsigned int  salt,
unsigned int  it 
) const [inline]

Encodes a tile id.

Definition at line 124 of file DetourTileCache.h.

struct dtTileCacheAlloc* dtTileCache::getAlloc ( ) [inline, read]

Definition at line 77 of file DetourTileCache.h.

struct dtTileCacheCompressor* dtTileCache::getCompressor ( ) [inline, read]

Definition at line 78 of file DetourTileCache.h.

const dtTileCacheObstacle* dtTileCache::getObstacle ( const int  i) const [inline]

Definition at line 85 of file DetourTileCache.h.

void dtTileCache::getObstacleBounds ( const struct dtTileCacheObstacle ob,
float bmin,
float bmax 
) const
const dtTileCacheObstacle* dtTileCache::getObstacleByRef ( dtObstacleRef  ref)
int dtTileCache::getObstacleCount ( ) const [inline]

Definition at line 84 of file DetourTileCache.h.

dtObstacleRef dtTileCache::getObstacleRef ( const dtTileCacheObstacle obmin) const
const dtTileCacheParams* dtTileCache::getParams ( ) const [inline]

Definition at line 79 of file DetourTileCache.h.

const dtCompressedTile* dtTileCache::getTile ( const int  i) const [inline]

Definition at line 82 of file DetourTileCache.h.

dtCompressedTile* dtTileCache::getTileAt ( const int  tx,
const int  ty,
const int  tlayer 
)
const dtCompressedTile* dtTileCache::getTileByRef ( dtCompressedTileRef  ref) const
int dtTileCache::getTileCount ( ) const [inline]

Definition at line 81 of file DetourTileCache.h.

dtCompressedTileRef dtTileCache::getTileRef ( const dtCompressedTile tile) const
int dtTileCache::getTilesAt ( const int  tx,
const int  ty,
dtCompressedTileRef tiles,
const int  maxTiles 
) const
dtStatus dtTileCache::init ( const dtTileCacheParams params,
struct dtTileCacheAlloc talloc,
struct dtTileCacheCompressor tcomp,
struct dtTileCacheMeshProcess tmproc 
)
dtStatus dtTileCache::queryTiles ( const float bmin,
const float bmax,
dtCompressedTileRef results,
int resultCount,
const int  maxResults 
) const
dtStatus dtTileCache::removeObstacle ( const dtObstacleRef  ref)
dtStatus dtTileCache::removeTile ( dtCompressedTileRef  ref,
unsigned char **  data,
int dataSize 
)
dtStatus dtTileCache::update ( const float  ,
class dtNavMesh navmesh 
)

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