OpenMoHAA ..
Loading...
Searching...
No Matches
NavigationMap Class Reference

Full navigation map with meshes and tiles. More...

#include <navigation_recast_load.h>

Public Member Functions

void LoadWorldMap (const char *mapname)
 Generate the navigation system from the specified BSP map file.
void CleanUp (qboolean samemap)
 Do some cleanups.
void ClearNavigation ()
 Clear and free memory allocated for the navigation system.
bool IsValid () const
 Whether or not the navigation system is valid.
dtNavMesh * GetNavMesh () const
 Get the navigation mesh.
dtNavMeshQuery * GetNavMeshQuery () const
 Get navigation query object.
const dtQueryFilter * GetQueryFilter () const
 Get the query used when querying the navmesh.
const navMap_tGetNavigationData () const
 Return the navigation data loaded from the BSP.
void Update ()
 Update the navigation map.

Public Attributes

float * offMeshConVerts
float * offMeshConRad
unsigned short * offMeshConFlags
unsigned char * offMeshConAreas
unsigned char * offMeshConDir
unsigned int * offMeshConUserID
int offMeshConCount
Container< INavigationMapExtension * > extensions
str currentMap
bool validNavigation

Detailed Description

Full navigation map with meshes and tiles.

Member Function Documentation

◆ CleanUp()

void NavigationMap::CleanUp ( qboolean samemap)

Do some cleanups.

Parameters
samemapWhether or not it's the same map

◆ GetNavigationData()

const navMap_t & NavigationMap::GetNavigationData ( ) const

Return the navigation data loaded from the BSP.

Returns
Const navigation data

◆ GetNavMesh()

dtNavMesh * NavigationMap::GetNavMesh ( ) const

Get the navigation mesh.

Returns
dtNavMesh* The navigation mesh.

◆ GetNavMeshQuery()

dtNavMeshQuery * NavigationMap::GetNavMeshQuery ( ) const

Get navigation query object.

Returns
dtNavMeshQuery* The navigation query object.

◆ GetQueryFilter()

const dtQueryFilter * NavigationMap::GetQueryFilter ( ) const

Get the query used when querying the navmesh.

Returns
The query filter object.

◆ IsValid()

bool NavigationMap::IsValid ( ) const

Whether or not the navigation system is valid.

Returns
true if there is a valid navigation generated.

◆ LoadWorldMap()

void NavigationMap::LoadWorldMap ( const char * mapname)

Generate the navigation system from the specified BSP map file.

Parameters
mapnameThe .bsp map file.

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