doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
idAASLocal Class Reference

#include <AAS_local.h>

Inheritance diagram for idAASLocal:
idAAS

Public Member Functions

 idAASLocal (void)
 
virtual ~idAASLocal (void)
 
virtual bool Init (const idStr &mapName, unsigned int mapFileCRC)
 
virtual void Shutdown (void)
 
virtual void Stats (void) const
 
virtual void Test (const idVec3 &origin)
 
virtual const idAASSettingsGetSettings (void) const
 
virtual int PointAreaNum (const idVec3 &origin) const
 
virtual int PointReachableAreaNum (const idVec3 &origin, const idBounds &searchBounds, const int areaFlags) const
 
virtual int BoundsReachableAreaNum (const idBounds &bounds, const int areaFlags) const
 
virtual void PushPointIntoAreaNum (int areaNum, idVec3 &origin) const
 
virtual idVec3 AreaCenter (int areaNum) const
 
virtual int AreaFlags (int areaNum) const
 
virtual int AreaTravelFlags (int areaNum) const
 
virtual bool Trace (aasTrace_t &trace, const idVec3 &start, const idVec3 &end) const
 
virtual const idPlaneGetPlane (int planeNum) const
 
virtual int GetWallEdges (int areaNum, const idBounds &bounds, int travelFlags, int *edges, int maxEdges) const
 
virtual void SortWallEdges (int *edges, int numEdges) const
 
virtual void GetEdgeVertexNumbers (int edgeNum, int verts[2]) const
 
virtual void GetEdge (int edgeNum, idVec3 &start, idVec3 &end) const
 
virtual bool SetAreaState (const idBounds &bounds, const int areaContents, bool disabled)
 
virtual aasHandle_t AddObstacle (const idBounds &bounds)
 
virtual void RemoveObstacle (const aasHandle_t handle)
 
virtual void RemoveAllObstacles (void)
 
virtual int TravelTimeToGoalArea (int areaNum, const idVec3 &origin, int goalAreaNum, int travelFlags) const
 
virtual bool RouteToGoalArea (int areaNum, const idVec3 origin, int goalAreaNum, int travelFlags, int &travelTime, idReachability **reach) const
 
virtual bool WalkPathToGoal (aasPath_t &path, int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags) const
 
virtual bool WalkPathValid (int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags, idVec3 &endPos, int &endAreaNum) const
 
virtual bool FlyPathToGoal (aasPath_t &path, int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags) const
 
virtual bool FlyPathValid (int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags, idVec3 &endPos, int &endAreaNum) const
 
virtual void ShowWalkPath (const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin) const
 
virtual void ShowFlyPath (const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin) const
 
virtual bool FindNearestGoal (aasGoal_t &goal, int areaNum, const idVec3 origin, const idVec3 &target, int travelFlags, aasObstacle_t *obstacles, int numObstacles, idAASCallback &callback) const
 
- Public Member Functions inherited from idAAS
virtual ~idAAS (void)=0
 

Private Member Functions

bool SetupRouting (void)
 
void ShutdownRouting (void)
 
unsigned short AreaTravelTime (int areaNum, const idVec3 &start, const idVec3 &end) const
 
void CalculateAreaTravelTimes (void)
 
void DeleteAreaTravelTimes (void)
 
void SetupRoutingCache (void)
 
void DeleteClusterCache (int clusterNum)
 
void DeletePortalCache (void)
 
void ShutdownRoutingCache (void)
 
void RoutingStats (void) const
 
void LinkCache (idRoutingCache *cache) const
 
void UnlinkCache (idRoutingCache *cache) const
 
void DeleteOldestCache (void) const
 
idReachabilityGetAreaReachability (int areaNum, int reachabilityNum) const
 
int ClusterAreaNum (int clusterNum, int areaNum) const
 
void UpdateAreaRoutingCache (idRoutingCache *areaCache) const
 
idRoutingCacheGetAreaRoutingCache (int clusterNum, int areaNum, int travelFlags) const
 
void UpdatePortalRoutingCache (idRoutingCache *portalCache) const
 
idRoutingCacheGetPortalRoutingCache (int clusterNum, int areaNum, int travelFlags) const
 
void RemoveRoutingCacheUsingArea (int areaNum)
 
void DisableArea (int areaNum)
 
void EnableArea (int areaNum)
 
bool SetAreaState_r (int nodeNum, const idBounds &bounds, const int areaContents, bool disabled)
 
void GetBoundsAreas_r (int nodeNum, const idBounds &bounds, idList< int > &areas) const
 
void SetObstacleState (const idRoutingObstacle *obstacle, bool enable)
 
bool EdgeSplitPoint (idVec3 &split, int edgeNum, const idPlane &plane) const
 
bool FloorEdgeSplitPoint (idVec3 &split, int areaNum, const idPlane &splitPlane, const idPlane &frontPlane, bool closest) const
 
idVec3 SubSampleWalkPath (int areaNum, const idVec3 &origin, const idVec3 &start, const idVec3 &end, int travelFlags, int &endAreaNum) const
 
idVec3 SubSampleFlyPath (int areaNum, const idVec3 &origin, const idVec3 &start, const idVec3 &end, int travelFlags, int &endAreaNum) const
 
const idBoundsDefaultSearchBounds (void) const
 
void DrawCone (const idVec3 &origin, const idVec3 &dir, float radius, const idVec4 &color) const
 
void DrawArea (int areaNum) const
 
void DrawFace (int faceNum, bool side) const
 
void DrawEdge (int edgeNum, bool arrow) const
 
void DrawReachability (const idReachability *reach) const
 
void ShowArea (const idVec3 &origin) const
 
void ShowWallEdges (const idVec3 &origin) const
 
void ShowHideArea (const idVec3 &origin, int targerAreaNum) const
 
bool PullPlayer (const idVec3 &origin, int toAreaNum) const
 
void RandomPullPlayer (const idVec3 &origin) const
 
void ShowPushIntoArea (const idVec3 &origin) const
 

Private Attributes

idAASFilefile
 
idStr name
 
idRoutingCache *** areaCacheIndex
 
int areaCacheIndexSize
 
idRoutingCache ** portalCacheIndex
 
int portalCacheIndexSize
 
idRoutingUpdateareaUpdate
 
idRoutingUpdateportalUpdate
 
unsigned short * goalAreaTravelTimes
 
unsigned short * areaTravelTimes
 
int numAreaTravelTimes
 
idRoutingCachecacheListStart
 
idRoutingCachecacheListEnd
 
int totalCacheMemory
 
idList< idRoutingObstacle * > obstacleList
 

Additional Inherited Members

- Static Public Member Functions inherited from idAAS
static idAASAlloc (void)
 

Detailed Description

Definition at line 86 of file AAS_local.h.

Constructor & Destructor Documentation

idAASLocal::idAASLocal ( void  )

Definition at line 56 of file AAS.cpp.

idAASLocal::~idAASLocal ( void  )
virtual

Definition at line 65 of file AAS.cpp.

Member Function Documentation

aasHandle_t idAASLocal::AddObstacle ( const idBounds bounds)
virtual

Implements idAAS.

Definition at line 537 of file AAS_routing.cpp.

idVec3 idAASLocal::AreaCenter ( int  areaNum) const
virtual

Implements idAAS.

Definition at line 187 of file AAS.cpp.

int idAASLocal::AreaFlags ( int  areaNum) const
virtual

Implements idAAS.

Definition at line 199 of file AAS.cpp.

int idAASLocal::AreaTravelFlags ( int  areaNum) const
virtual

Implements idAAS.

Definition at line 211 of file AAS.cpp.

unsigned short idAASLocal::AreaTravelTime ( int  areaNum,
const idVec3 start,
const idVec3 end 
) const
private

Definition at line 86 of file AAS_routing.cpp.

int idAASLocal::BoundsReachableAreaNum ( const idBounds bounds,
const int  areaFlags 
) const
virtual

Implements idAAS.

Definition at line 162 of file AAS.cpp.

void idAASLocal::CalculateAreaTravelTimes ( void  )
private

Definition at line 109 of file AAS_routing.cpp.

ID_INLINE int idAASLocal::ClusterAreaNum ( int  clusterNum,
int  areaNum 
) const
private

Definition at line 693 of file AAS_routing.cpp.

const idBounds & idAASLocal::DefaultSearchBounds ( void  ) const
private

Definition at line 177 of file AAS_debug.cpp.

void idAASLocal::DeleteAreaTravelTimes ( void  )
private

Definition at line 178 of file AAS_routing.cpp.

void idAASLocal::DeleteClusterCache ( int  clusterNum)
private

Definition at line 222 of file AAS_routing.cpp.

void idAASLocal::DeleteOldestCache ( void  ) const
private

Definition at line 646 of file AAS_routing.cpp.

void idAASLocal::DeletePortalCache ( void  )
private

Definition at line 240 of file AAS_routing.cpp.

void idAASLocal::DisableArea ( int  areaNum)
private

Definition at line 361 of file AAS_routing.cpp.

void idAASLocal::DrawArea ( int  areaNum) const
private

Definition at line 150 of file AAS_debug.cpp.

void idAASLocal::DrawCone ( const idVec3 origin,
const idVec3 dir,
float  radius,
const idVec4 color 
) const
private

Definition at line 41 of file AAS_debug.cpp.

void idAASLocal::DrawEdge ( int  edgeNum,
bool  arrow 
) const
private

Definition at line 90 of file AAS_debug.cpp.

void idAASLocal::DrawFace ( int  faceNum,
bool  side 
) const
private

Definition at line 116 of file AAS_debug.cpp.

void idAASLocal::DrawReachability ( const idReachability reach) const
private

Definition at line 67 of file AAS_debug.cpp.

bool idAASLocal::EdgeSplitPoint ( idVec3 split,
int  edgeNum,
const idPlane plane 
) const
private

Definition at line 54 of file AAS_pathing.cpp.

void idAASLocal::EnableArea ( int  areaNum)
private

Definition at line 378 of file AAS_routing.cpp.

bool idAASLocal::FindNearestGoal ( aasGoal_t goal,
int  areaNum,
const idVec3  origin,
const idVec3 target,
int  travelFlags,
aasObstacle_t obstacles,
int  numObstacles,
idAASCallback callback 
) const
virtual

Implements idAAS.

Definition at line 1169 of file AAS_routing.cpp.

bool idAASLocal::FloorEdgeSplitPoint ( idVec3 split,
int  areaNum,
const idPlane splitPlane,
const idPlane frontPlane,
bool  closest 
) const
private

Definition at line 81 of file AAS_pathing.cpp.

bool idAASLocal::FlyPathToGoal ( aasPath_t path,
int  areaNum,
const idVec3 origin,
int  goalAreaNum,
const idVec3 goalOrigin,
int  travelFlags 
) const
virtual

Implements idAAS.

Definition at line 457 of file AAS_pathing.cpp.

bool idAASLocal::FlyPathValid ( int  areaNum,
const idVec3 origin,
int  goalAreaNum,
const idVec3 goalOrigin,
int  travelFlags,
idVec3 endPos,
int endAreaNum 
) const
virtual

Implements idAAS.

Definition at line 402 of file AAS_pathing.cpp.

idReachability * idAASLocal::GetAreaReachability ( int  areaNum,
int  reachabilityNum 
) const
private

Definition at line 677 of file AAS_routing.cpp.

idRoutingCache * idAASLocal::GetAreaRoutingCache ( int  clusterNum,
int  areaNum,
int  travelFlags 
) const
private

Definition at line 829 of file AAS_routing.cpp.

void idAASLocal::GetBoundsAreas_r ( int  nodeNum,
const idBounds bounds,
idList< int > &  areas 
) const
private

Definition at line 454 of file AAS_routing.cpp.

void idAASLocal::GetEdge ( int  edgeNum,
idVec3 start,
idVec3 end 
) const
virtual

Implements idAAS.

Definition at line 266 of file AAS.cpp.

void idAASLocal::GetEdgeVertexNumbers ( int  edgeNum,
int  verts[2] 
) const
virtual

Implements idAAS.

Definition at line 251 of file AAS.cpp.

const idPlane & idAASLocal::GetPlane ( int  planeNum) const
virtual

Implements idAAS.

Definition at line 238 of file AAS.cpp.

idRoutingCache * idAASLocal::GetPortalRoutingCache ( int  clusterNum,
int  areaNum,
int  travelFlags 
) const
private

Definition at line 960 of file AAS_routing.cpp.

const idAASSettings * idAASLocal::GetSettings ( void  ) const
virtual

Implements idAAS.

Definition at line 125 of file AAS.cpp.

int idAASLocal::GetWallEdges ( int  areaNum,
const idBounds bounds,
int  travelFlags,
int edges,
int  maxEdges 
) const
virtual

Implements idAAS.

Definition at line 609 of file AAS_pathing.cpp.

bool idAASLocal::Init ( const idStr mapName,
unsigned int  mapFileCRC 
)
virtual

Implements idAAS.

Definition at line 74 of file AAS.cpp.

void idAASLocal::LinkCache ( idRoutingCache cache) const
private

Definition at line 597 of file AAS_routing.cpp.

int idAASLocal::PointAreaNum ( const idVec3 origin) const
virtual

Implements idAAS.

Definition at line 137 of file AAS.cpp.

int idAASLocal::PointReachableAreaNum ( const idVec3 origin,
const idBounds searchBounds,
const int  areaFlags 
) const
virtual

Implements idAAS.

Definition at line 149 of file AAS.cpp.

bool idAASLocal::PullPlayer ( const idVec3 origin,
int  toAreaNum 
) const
private

Definition at line 388 of file AAS_debug.cpp.

void idAASLocal::PushPointIntoAreaNum ( int  areaNum,
idVec3 origin 
) const
virtual

Implements idAAS.

Definition at line 175 of file AAS.cpp.

void idAASLocal::RandomPullPlayer ( const idVec3 origin) const
private

Definition at line 439 of file AAS_debug.cpp.

void idAASLocal::RemoveAllObstacles ( void  )
virtual

Implements idAAS.

Definition at line 576 of file AAS_routing.cpp.

void idAASLocal::RemoveObstacle ( const aasHandle_t  handle)
virtual

Implements idAAS.

Definition at line 559 of file AAS_routing.cpp.

void idAASLocal::RemoveRoutingCacheUsingArea ( int  areaNum)
private

Definition at line 340 of file AAS_routing.cpp.

bool idAASLocal::RouteToGoalArea ( int  areaNum,
const idVec3  origin,
int  goalAreaNum,
int  travelFlags,
int travelTime,
idReachability **  reach 
) const
virtual

Implements idAAS.

Definition at line 994 of file AAS_routing.cpp.

void idAASLocal::RoutingStats ( void  ) const
private

Definition at line 310 of file AAS_routing.cpp.

bool idAASLocal::SetAreaState ( const idBounds bounds,
const int  areaContents,
bool  disabled 
)
virtual

Implements idAAS.

Definition at line 435 of file AAS_routing.cpp.

bool idAASLocal::SetAreaState_r ( int  nodeNum,
const idBounds bounds,
const int  areaContents,
bool  disabled 
)
private

Definition at line 395 of file AAS_routing.cpp.

void idAASLocal::SetObstacleState ( const idRoutingObstacle obstacle,
bool  enable 
)
private

Definition at line 483 of file AAS_routing.cpp.

bool idAASLocal::SetupRouting ( void  )
private

Definition at line 289 of file AAS_routing.cpp.

void idAASLocal::SetupRoutingCache ( void  )
private

Definition at line 189 of file AAS_routing.cpp.

void idAASLocal::ShowArea ( const idVec3 origin) const
private

Definition at line 186 of file AAS_debug.cpp.

void idAASLocal::ShowFlyPath ( const idVec3 origin,
int  goalAreaNum,
const idVec3 goalOrigin 
) const
virtual

Implements idAAS.

Definition at line 290 of file AAS_debug.cpp.

void idAASLocal::ShowHideArea ( const idVec3 origin,
int  targerAreaNum 
) const
private

Definition at line 360 of file AAS_debug.cpp.

void idAASLocal::ShowPushIntoArea ( const idVec3 origin) const
private

Definition at line 462 of file AAS_debug.cpp.

void idAASLocal::ShowWalkPath ( const idVec3 origin,
int  goalAreaNum,
const idVec3 goalOrigin 
) const
virtual

Implements idAAS.

Definition at line 244 of file AAS_debug.cpp.

void idAASLocal::ShowWallEdges ( const idVec3 origin) const
private

Definition at line 336 of file AAS_debug.cpp.

void idAASLocal::Shutdown ( void  )
virtual

Definition at line 97 of file AAS.cpp.

void idAASLocal::ShutdownRouting ( void  )
private

Definition at line 300 of file AAS_routing.cpp.

void idAASLocal::ShutdownRoutingCache ( void  )
private

Definition at line 258 of file AAS_routing.cpp.

void idAASLocal::SortWallEdges ( int edges,
int  numEdges 
) const
virtual

Implements idAAS.

Definition at line 557 of file AAS_pathing.cpp.

void idAASLocal::Stats ( void  ) const
virtual

Implements idAAS.

Definition at line 111 of file AAS.cpp.

idVec3 idAASLocal::SubSampleFlyPath ( int  areaNum,
const idVec3 origin,
const idVec3 start,
const idVec3 end,
int  travelFlags,
int endAreaNum 
) const
private

Definition at line 428 of file AAS_pathing.cpp.

idVec3 idAASLocal::SubSampleWalkPath ( int  areaNum,
const idVec3 origin,
const idVec3 start,
const idVec3 end,
int  travelFlags,
int endAreaNum 
) const
private

Definition at line 252 of file AAS_pathing.cpp.

void idAASLocal::Test ( const idVec3 origin)
virtual

Implements idAAS.

Definition at line 477 of file AAS_debug.cpp.

bool idAASLocal::Trace ( aasTrace_t trace,
const idVec3 start,
const idVec3 end 
) const
virtual

Implements idAAS.

Definition at line 223 of file AAS.cpp.

int idAASLocal::TravelTimeToGoalArea ( int  areaNum,
const idVec3 origin,
int  goalAreaNum,
int  travelFlags 
) const
virtual

Implements idAAS.

Definition at line 1150 of file AAS_routing.cpp.

void idAASLocal::UnlinkCache ( idRoutingCache cache) const
private

Definition at line 623 of file AAS_routing.cpp.

void idAASLocal::UpdateAreaRoutingCache ( idRoutingCache areaCache) const
private

Definition at line 711 of file AAS_routing.cpp.

void idAASLocal::UpdatePortalRoutingCache ( idRoutingCache portalCache) const
private

Definition at line 868 of file AAS_routing.cpp.

bool idAASLocal::WalkPathToGoal ( aasPath_t path,
int  areaNum,
const idVec3 origin,
int  goalAreaNum,
const idVec3 goalOrigin,
int  travelFlags 
) const
virtual

Implements idAAS.

Definition at line 281 of file AAS_pathing.cpp.

bool idAASLocal::WalkPathValid ( int  areaNum,
const idVec3 origin,
int  goalAreaNum,
const idVec3 goalOrigin,
int  travelFlags,
idVec3 endPos,
int endAreaNum 
) const
virtual

Implements idAAS.

Definition at line 139 of file AAS_pathing.cpp.

Member Data Documentation

idRoutingCache*** idAASLocal::areaCacheIndex
private

Definition at line 127 of file AAS_local.h.

int idAASLocal::areaCacheIndexSize
private

Definition at line 128 of file AAS_local.h.

unsigned short* idAASLocal::areaTravelTimes
private

Definition at line 134 of file AAS_local.h.

idRoutingUpdate* idAASLocal::areaUpdate
private

Definition at line 131 of file AAS_local.h.

idRoutingCache* idAASLocal::cacheListEnd
mutableprivate

Definition at line 137 of file AAS_local.h.

idRoutingCache* idAASLocal::cacheListStart
mutableprivate

Definition at line 136 of file AAS_local.h.

idAASFile* idAASLocal::file
private

Definition at line 123 of file AAS_local.h.

unsigned short* idAASLocal::goalAreaTravelTimes
private

Definition at line 133 of file AAS_local.h.

idStr idAASLocal::name
private

Definition at line 124 of file AAS_local.h.

int idAASLocal::numAreaTravelTimes
private

Definition at line 135 of file AAS_local.h.

idList<idRoutingObstacle *> idAASLocal::obstacleList
private

Definition at line 139 of file AAS_local.h.

idRoutingCache** idAASLocal::portalCacheIndex
private

Definition at line 129 of file AAS_local.h.

int idAASLocal::portalCacheIndexSize
private

Definition at line 130 of file AAS_local.h.

idRoutingUpdate* idAASLocal::portalUpdate
private

Definition at line 132 of file AAS_local.h.

int idAASLocal::totalCacheMemory
mutableprivate

Definition at line 138 of file AAS_local.h.


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