#include <MapTree.h>
|
| | StaticMapTree (uint32 mapID, const std::string &basePath) |
| |
| | ~StaticMapTree () |
| | Make sure to call unloadMap() to unregister acquired model references before destroying.
|
| |
| bool | isInLineOfSight (const G3D::Vector3 &pos1, const G3D::Vector3 &pos2, ModelIgnoreFlags ignoreFlags) const |
| |
| bool | getObjectHitPos (const G3D::Vector3 &pos1, const G3D::Vector3 &pos2, G3D::Vector3 &pResultHitPos, float pModifyDist) const |
| |
| float | getHeight (const G3D::Vector3 &pPos, float maxSearchDist) const |
| |
| bool | GetLocationInfo (const G3D::Vector3 &pos, LocationInfo &info) const |
| |
| bool | InitMap (const std::string &fname, VMapManager2 *vm) |
| |
| void | UnloadMap (VMapManager2 *vm) |
| |
| bool | LoadMapTile (uint32 tileX, uint32 tileY, VMapManager2 *vm) |
| |
| void | UnloadMapTile (uint32 tileX, uint32 tileY, VMapManager2 *vm) |
| |
| bool | isTiled () const |
| |
| uint32 | numLoadedTiles () const |
| |
| void | getModelInstances (ModelInstance *&models, uint32 &count) |
| |
Definition at line 48 of file MapTree.h.
◆ loadedSpawnMap
◆ loadedTileMap
◆ StaticMapTree() [1/2]
| VMAP::StaticMapTree::StaticMapTree |
( |
uint32 |
mapID, |
|
|
const std::string & |
basePath |
|
) |
| |
◆ ~StaticMapTree()
| VMAP::StaticMapTree::~StaticMapTree |
( |
| ) |
|
Make sure to call unloadMap() to unregister acquired model references before destroying.
Definition at line 102 of file MapTree.cpp.
◆ StaticMapTree() [2/2]
| VMAP::StaticMapTree::StaticMapTree |
( |
StaticMapTree const & |
right | ) |
|
|
privatedelete |
◆ CanLoadMap()
◆ getHeight()
| float VMAP::StaticMapTree::getHeight |
( |
const G3D::Vector3 & |
pPos, |
|
|
float |
maxSearchDist |
|
) |
| const |
◆ getIntersectionTime()
| bool VMAP::StaticMapTree::getIntersectionTime |
( |
const G3D::Ray & |
pRay, |
|
|
float & |
pMaxDist, |
|
|
bool |
pStopAtFirstHit, |
|
|
ModelIgnoreFlags |
ignoreFlags |
|
) |
| const |
|
private |
If intersection is found within pMaxDist, sets pMaxDist to intersection distance and returns true. Else, pMaxDist is not modified and returns false;
Definition at line 112 of file MapTree.cpp.
◆ GetLocationInfo()
| bool VMAP::StaticMapTree::GetLocationInfo |
( |
const G3D::Vector3 & |
pos, |
|
|
LocationInfo & |
info |
|
) |
| const |
◆ getModelInstances()
◆ getObjectHitPos()
| bool VMAP::StaticMapTree::getObjectHitPos |
( |
const G3D::Vector3 & |
pos1, |
|
|
const G3D::Vector3 & |
pos2, |
|
|
G3D::Vector3 & |
pResultHitPos, |
|
|
float |
pModifyDist |
|
) |
| const |
When moving from pos1 to pos2 check if we hit an object. Return true and the position if we hit one Return the hit pos or the original dest pos
Definition at line 148 of file MapTree.cpp.
◆ getTileFileName()
| std::string VMAP::StaticMapTree::getTileFileName |
( |
uint32 |
mapID, |
|
|
uint32 |
tileX, |
|
|
uint32 |
tileY |
|
) |
| |
|
static |
◆ InitMap()
| bool VMAP::StaticMapTree::InitMap |
( |
const std::string & |
fname, |
|
|
VMapManager2 * |
vm |
|
) |
| |
◆ isInLineOfSight()
| bool VMAP::StaticMapTree::isInLineOfSight |
( |
const G3D::Vector3 & |
pos1, |
|
|
const G3D::Vector3 & |
pos2, |
|
|
ModelIgnoreFlags |
ignoreFlags |
|
) |
| const |
◆ isTiled()
| bool VMAP::StaticMapTree::isTiled |
( |
| ) |
const |
|
inline |
◆ LoadMapTile()
◆ numLoadedTiles()
| uint32 VMAP::StaticMapTree::numLoadedTiles |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ packTileID()
◆ UnloadMap()
◆ UnloadMapTile()
◆ unpackTileID()
| static void VMAP::StaticMapTree::unpackTileID |
( |
uint32 |
ID, |
|
|
uint32 & |
tileX, |
|
|
uint32 & |
tileY |
|
) |
| |
|
inlinestatic |
◆ iBasePath
| std::string VMAP::StaticMapTree::iBasePath |
|
private |
◆ iIsTiled
| bool VMAP::StaticMapTree::iIsTiled |
|
private |
◆ iLoadedSpawns
◆ iLoadedTiles
◆ iMapID
| uint32 VMAP::StaticMapTree::iMapID |
|
private |
◆ iNTreeValues
| uint32 VMAP::StaticMapTree::iNTreeValues |
|
private |
◆ iTree
| BIH VMAP::StaticMapTree::iTree |
|
private |
◆ iTreeValues
The documentation for this class was generated from the following files: