#include <MapBuilder.h>
|
| MapBuilder (Optional< float > maxWalkableAngle, Optional< float > maxWalkableAngleNotSteep, bool skipLiquid, bool skipContinents, bool skipJunkMaps, bool skipBattlegrounds, bool debugOutput, bool bigBaseUnit, int mapid, char const *offMeshFilePath, unsigned int threads) |
|
| ~MapBuilder () |
|
void | buildMeshFromFile (char *name) |
|
void | buildSingleTile (uint32 mapID, uint32 tileX, uint32 tileY) |
|
void | buildMaps (Optional< uint32 > mapID) |
|
|
void | buildMap (uint32 mapID) |
|
void | discoverTiles () |
|
std::set< uint32 > * | getTileList (uint32 mapID) |
|
void | buildNavMesh (uint32 mapID, dtNavMesh *&navMesh) |
|
void | getTileBounds (uint32 tileX, uint32 tileY, float *verts, int vertCount, float *bmin, float *bmax) const |
|
void | getGridBounds (uint32 mapID, uint32 &minX, uint32 &minY, uint32 &maxX, uint32 &maxY) |
|
bool | shouldSkipMap (uint32 mapID) const |
|
bool | isTransportMap (uint32 mapID) const |
|
bool | isDevMap (uint32 mapID) const |
|
bool | isBattlegroundMap (uint32 mapID) const |
|
bool | isContinentMap (uint32 mapID) const |
|
rcConfig | GetMapSpecificConfig (uint32 mapID, float bmin[3], float bmax[3], const TileConfig &tileConfig) const |
|
uint32 | percentageDone (uint32 totalTiles, uint32 totalTilesDone) const |
|
uint32 | currentPercentageDone () const |
|
void | ParseOffMeshConnectionsFile (char const *offMeshFilePath) |
|
Definition at line 144 of file MapBuilder.h.
◆ MapBuilder()
MMAP::MapBuilder::MapBuilder |
( |
Optional< float > |
maxWalkableAngle, |
|
|
Optional< float > |
maxWalkableAngleNotSteep, |
|
|
bool |
skipLiquid, |
|
|
bool |
skipContinents, |
|
|
bool |
skipJunkMaps, |
|
|
bool |
skipBattlegrounds, |
|
|
bool |
debugOutput, |
|
|
bool |
bigBaseUnit, |
|
|
int |
mapid, |
|
|
char const * |
offMeshFilePath, |
|
|
unsigned int |
threads |
|
) |
| |
◆ ~MapBuilder()
MMAP::MapBuilder::~MapBuilder |
( |
| ) |
|
◆ buildMap()
void MMAP::MapBuilder::buildMap |
( |
uint32 |
mapID | ) |
|
|
private |
◆ buildMaps()
◆ buildMeshFromFile()
void MMAP::MapBuilder::buildMeshFromFile |
( |
char * |
name | ) |
|
◆ buildNavMesh()
void MMAP::MapBuilder::buildNavMesh |
( |
uint32 |
mapID, |
|
|
dtNavMesh *& |
navMesh |
|
) |
| |
|
private |
*** calculate number of bits needed to store tiles & polys ***/
Definition at line 553 of file MapBuilder.cpp.
◆ buildSingleTile()
◆ currentPercentageDone()
uint32 MMAP::MapBuilder::currentPercentageDone |
( |
| ) |
const |
|
private |
◆ discoverTiles()
void MMAP::MapBuilder::discoverTiles |
( |
| ) |
|
|
private |
◆ getGridBounds()
◆ GetMapSpecificConfig()
rcConfig MMAP::MapBuilder::GetMapSpecificConfig |
( |
uint32 |
mapID, |
|
|
float |
bmin[3], |
|
|
float |
bmax[3], |
|
|
const TileConfig & |
tileConfig |
|
) |
| const |
|
private |
◆ getTileBounds()
void MMAP::MapBuilder::getTileBounds |
( |
uint32 |
tileX, |
|
|
uint32 |
tileY, |
|
|
float * |
verts, |
|
|
int |
vertCount, |
|
|
float * |
bmin, |
|
|
float * |
bmax |
|
) |
| const |
|
private |
◆ getTileList()
std::set< uint32 > * MMAP::MapBuilder::getTileList |
( |
uint32 |
mapID | ) |
|
|
private |
◆ isBattlegroundMap()
bool MMAP::MapBuilder::isBattlegroundMap |
( |
uint32 |
mapID | ) |
const |
|
private |
◆ isContinentMap()
bool MMAP::MapBuilder::isContinentMap |
( |
uint32 |
mapID | ) |
const |
|
private |
◆ isDevMap()
bool MMAP::MapBuilder::isDevMap |
( |
uint32 |
mapID | ) |
const |
|
private |
◆ isTransportMap()
bool MMAP::MapBuilder::isTransportMap |
( |
uint32 |
mapID | ) |
const |
|
private |
◆ ParseOffMeshConnectionsFile()
void MMAP::MapBuilder::ParseOffMeshConnectionsFile |
( |
char const * |
offMeshFilePath | ) |
|
|
private |
◆ percentageDone()
uint32 MMAP::MapBuilder::percentageDone |
( |
uint32 |
totalTiles, |
|
|
uint32 |
totalTilesDone |
|
) |
| const |
|
private |
◆ shouldSkipMap()
bool MMAP::MapBuilder::shouldSkipMap |
( |
uint32 |
mapID | ) |
const |
|
private |
◆ TileBuilder
◆ _cancelationToken
std::atomic<bool> MMAP::MapBuilder::_cancelationToken |
|
private |
◆ _queue
◆ m_bigBaseUnit
bool MMAP::MapBuilder::m_bigBaseUnit |
|
private |
◆ m_debugOutput
bool MMAP::MapBuilder::m_debugOutput |
|
private |
◆ m_mapid
int32 MMAP::MapBuilder::m_mapid |
|
private |
◆ m_maxWalkableAngle
Optional<float> MMAP::MapBuilder::m_maxWalkableAngle |
|
private |
◆ m_maxWalkableAngleNotSteep
Optional<float> MMAP::MapBuilder::m_maxWalkableAngleNotSteep |
|
private |
◆ m_offMeshConnections
std::vector<OffMeshData> MMAP::MapBuilder::m_offMeshConnections |
|
private |
◆ m_rcContext
rcContext* MMAP::MapBuilder::m_rcContext |
|
private |
◆ m_skipBattlegrounds
bool MMAP::MapBuilder::m_skipBattlegrounds |
|
private |
◆ m_skipContinents
bool MMAP::MapBuilder::m_skipContinents |
|
private |
◆ m_skipJunkMaps
bool MMAP::MapBuilder::m_skipJunkMaps |
|
private |
◆ m_skipLiquid
bool MMAP::MapBuilder::m_skipLiquid |
|
private |
◆ m_terrainBuilder
◆ m_threads
unsigned int MMAP::MapBuilder::m_threads |
|
private |
◆ m_tileBuilders
std::vector<TileBuilder*> MMAP::MapBuilder::m_tileBuilders |
|
private |
◆ m_tiles
◆ m_totalTiles
std::atomic<uint32> MMAP::MapBuilder::m_totalTiles |
|
private |
◆ m_totalTilesProcessed
std::atomic<uint32> MMAP::MapBuilder::m_totalTilesProcessed |
|
private |
The documentation for this class was generated from the following files: