#include <MapTree.h>
|
| | StaticMapTree (uint32 mapID, std::string const &basePath) |
| |
| | ~StaticMapTree () |
| | Make sure to call unloadMap() to unregister acquired model references before destroying.
|
| |
| bool | isInLineOfSight (G3D::Vector3 const &pos1, G3D::Vector3 const &pos2, ModelIgnoreFlags ignoreFlags) const |
| |
| bool | getObjectHitPos (G3D::Vector3 const &pos1, G3D::Vector3 const &pos2, G3D::Vector3 &pResultHitPos, float pModifyDist) const |
| |
| float | getHeight (G3D::Vector3 const &pPos, float maxSearchDist) const |
| |
| bool | GetLocationInfo (G3D::Vector3 const &pos, LocationInfo &info) const |
| |
| LoadResult | InitMap (std::string const &fname) |
| |
| void | UnloadMap () |
| |
| LoadResult | LoadMapTile (uint32 tileX, uint32 tileY, VMapManager *vm) |
| |
| void | UnloadMapTile (uint32 tileX, uint32 tileY) |
| |
| uint32 | numLoadedTiles () const |
| |
| std::span< ModelInstance const > | getModelInstances () const |
| |
Definition at line 49 of file MapTree.h.
◆ loadedTileMap
◆ StaticMapTree() [1/2]
| VMAP::StaticMapTree::StaticMapTree |
( |
uint32 |
mapID, |
|
|
std::string const & |
basePath |
|
) |
| |
◆ ~StaticMapTree()
| VMAP::StaticMapTree::~StaticMapTree |
( |
| ) |
|
|
default |
Make sure to call unloadMap() to unregister acquired model references before destroying.
◆ StaticMapTree() [2/2]
| VMAP::StaticMapTree::StaticMapTree |
( |
StaticMapTree const & |
right | ) |
|
|
privatedelete |
◆ CanLoadMap()
◆ getHeight()
| float VMAP::StaticMapTree::getHeight |
( |
G3D::Vector3 const & |
pPos, |
|
|
float |
maxSearchDist |
|
) |
| const |
◆ getIntersectionTime()
| bool VMAP::StaticMapTree::getIntersectionTime |
( |
G3D::Ray const & |
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 96 of file MapTree.cpp.
◆ GetLocationInfo()
| bool VMAP::StaticMapTree::GetLocationInfo |
( |
G3D::Vector3 const & |
pos, |
|
|
LocationInfo & |
info |
|
) |
| const |
◆ getModelInstances()
| std::span< ModelInstance const > VMAP::StaticMapTree::getModelInstances |
( |
| ) |
const |
◆ getObjectHitPos()
| bool VMAP::StaticMapTree::getObjectHitPos |
( |
G3D::Vector3 const & |
pos1, |
|
|
G3D::Vector3 const & |
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 132 of file MapTree.cpp.
◆ InitMap()
| LoadResult VMAP::StaticMapTree::InitMap |
( |
std::string const & |
fname | ) |
|
◆ isInLineOfSight()
| bool VMAP::StaticMapTree::isInLineOfSight |
( |
G3D::Vector3 const & |
pos1, |
|
|
G3D::Vector3 const & |
pos2, |
|
|
ModelIgnoreFlags |
ignoreFlags |
|
) |
| const |
◆ LoadMapTile()
◆ numLoadedTiles()
| uint32 VMAP::StaticMapTree::numLoadedTiles |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ packTileID()
◆ UnloadMap()
| void VMAP::StaticMapTree::UnloadMap |
( |
| ) |
|
◆ UnloadMapTile()
| void VMAP::StaticMapTree::UnloadMapTile |
( |
uint32 |
tileX, |
|
|
uint32 |
tileY |
|
) |
| |
◆ unpackTileID()
| static void VMAP::StaticMapTree::unpackTileID |
( |
uint32 |
ID, |
|
|
uint32 & |
tileX, |
|
|
uint32 & |
tileY |
|
) |
| |
|
inlinestatic |
◆ iBasePath
| std::string VMAP::StaticMapTree::iBasePath |
|
private |
◆ iLoadedTiles
◆ iMapID
| uint32 VMAP::StaticMapTree::iMapID |
|
private |
◆ iTree
| BIH VMAP::StaticMapTree::iTree |
|
private |
◆ iTreeValues
The documentation for this class was generated from the following files: