Atoms Crowd  7.0.0
AtomsUtils::dtTileCache Class Reference

Public Member Functions

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

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