29 #ifndef __AAS_LOCAL_H__
30 #define __AAS_LOCAL_H__
43 int Size(
void )
const;
90 virtual bool Init(
const idStr &mapName,
unsigned int mapFileCRC );
92 virtual void Stats(
void )
const;
100 virtual int AreaFlags(
int areaNum )
const;
104 virtual int GetWallEdges(
int areaNum,
const idBounds &bounds,
int travelFlags,
int *edges,
int maxEdges )
const;
105 virtual void SortWallEdges(
int *edges,
int numEdges )
const;
115 virtual bool WalkPathValid(
int areaNum,
const idVec3 &origin,
int goalAreaNum,
const idVec3 &goalOrigin,
int travelFlags,
idVec3 &endPos,
int &endAreaNum )
const;
117 virtual bool FlyPathValid(
int areaNum,
const idVec3 &origin,
int goalAreaNum,
const idVec3 &goalOrigin,
int travelFlags,
idVec3 &endPos,
int &endAreaNum )
const;
178 void DrawFace(
int faceNum,
bool side )
const;
179 void DrawEdge(
int edgeNum,
bool arrow )
const;
idRoutingCache * GetPortalRoutingCache(int clusterNum, int areaNum, int travelFlags) const
void ShutdownRoutingCache(void)
void DrawArea(int areaNum) const
virtual void ShowFlyPath(const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin) const
virtual const idPlane & GetPlane(int planeNum) const
unsigned short * goalAreaTravelTimes
virtual void Test(const idVec3 &origin)
idVec3 SubSampleFlyPath(int areaNum, const idVec3 &origin, const idVec3 &start, const idVec3 &end, int travelFlags, int &endAreaNum) const
virtual void Shutdown(void)
bool SetAreaState_r(int nodeNum, const idBounds &bounds, const int areaContents, bool disabled)
void DeletePortalCache(void)
idList< idRoutingObstacle * > obstacleList
void DrawFace(int faceNum, bool side) const
virtual void Stats(void) const
idVec3 SubSampleWalkPath(int areaNum, const idVec3 &origin, const idVec3 &start, const idVec3 &end, int travelFlags, int &endAreaNum) const
virtual bool FlyPathValid(int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags, idVec3 &endPos, int &endAreaNum) const
void RoutingStats(void) const
unsigned char * reachabilities
void ShowArea(const idVec3 &origin) const
virtual void PushPointIntoAreaNum(int areaNum, idVec3 &origin) const
idRoutingCache * cacheListEnd
idReachability * GetAreaReachability(int areaNum, int reachabilityNum) const
virtual void GetEdge(int edgeNum, idVec3 &start, idVec3 &end) const
idRoutingCache * cacheListStart
void SetObstacleState(const idRoutingObstacle *obstacle, bool enable)
virtual int AreaFlags(int areaNum) const
idRoutingUpdate * portalUpdate
void GetBoundsAreas_r(int nodeNum, const idBounds &bounds, idList< int > &areas) const
void ShutdownRouting(void)
idRoutingUpdate * areaUpdate
idRoutingCache * time_prev
virtual void GetEdgeVertexNumbers(int edgeNum, int verts[2]) const
bool EdgeSplitPoint(idVec3 &split, int edgeNum, const idPlane &plane) const
unsigned short startTravelTime
void SetupRoutingCache(void)
void RandomPullPlayer(const idVec3 &origin) const
void CalculateAreaTravelTimes(void)
virtual bool WalkPathValid(int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags, idVec3 &endPos, int &endAreaNum) const
virtual void RemoveAllObstacles(void)
virtual aasHandle_t AddObstacle(const idBounds &bounds)
void ShowPushIntoArea(const idVec3 &origin) const
unsigned short * travelTimes
virtual bool RouteToGoalArea(int areaNum, const idVec3 origin, int goalAreaNum, int travelFlags, int &travelTime, idReachability **reach) const
virtual ~idAASLocal(void)
unsigned short * areaTravelTimes
unsigned short tmpTravelTime
void ShowHideArea(const idVec3 &origin, int targerAreaNum) const
virtual void RemoveObstacle(const aasHandle_t handle)
virtual bool FindNearestGoal(aasGoal_t &goal, int areaNum, const idVec3 origin, const idVec3 &target, int travelFlags, aasObstacle_t *obstacles, int numObstacles, idAASCallback &callback) const
bool FloorEdgeSplitPoint(idVec3 &split, int areaNum, const idPlane &splitPlane, const idPlane &frontPlane, bool closest) const
void UpdatePortalRoutingCache(idRoutingCache *portalCache) const
virtual bool FlyPathToGoal(aasPath_t &path, int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags) const
unsigned short * areaTravelTimes
virtual int PointReachableAreaNum(const idVec3 &origin, const idBounds &searchBounds, const int areaFlags) const
const idBounds & DefaultSearchBounds(void) const
virtual void SortWallEdges(int *edges, int numEdges) const
bool PullPlayer(const idVec3 &origin, int toAreaNum) const
virtual bool WalkPathToGoal(aasPath_t &path, int areaNum, const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin, int travelFlags) const
void DrawEdge(int edgeNum, bool arrow) const
virtual const idAASSettings * GetSettings(void) const
idRoutingCache * time_next
void RemoveRoutingCacheUsingArea(int areaNum)
void UnlinkCache(idRoutingCache *cache) const
idRoutingCache *** areaCacheIndex
void DrawReachability(const idReachability *reach) const
void DrawCone(const idVec3 &origin, const idVec3 &dir, float radius, const idVec4 &color) const
void UpdateAreaRoutingCache(idRoutingCache *areaCache) const
unsigned short AreaTravelTime(int areaNum, const idVec3 &start, const idVec3 &end) const
void EnableArea(int areaNum)
virtual int BoundsReachableAreaNum(const idBounds &bounds, const int areaFlags) const
void DeleteClusterCache(int clusterNum)
virtual bool Init(const idStr &mapName, unsigned int mapFileCRC)
virtual void ShowWalkPath(const idVec3 &origin, int goalAreaNum, const idVec3 &goalOrigin) const
void DeleteOldestCache(void) const
virtual int AreaTravelFlags(int areaNum) const
virtual int GetWallEdges(int areaNum, const idBounds &bounds, int travelFlags, int *edges, int maxEdges) const
void LinkCache(idRoutingCache *cache) const
void DeleteAreaTravelTimes(void)
void DisableArea(int areaNum)
virtual bool SetAreaState(const idBounds &bounds, const int areaContents, bool disabled)
virtual int PointAreaNum(const idVec3 &origin) const
idRoutingCache * GetAreaRoutingCache(int clusterNum, int areaNum, int travelFlags) const
void ShowWallEdges(const idVec3 &origin) const
int ClusterAreaNum(int clusterNum, int areaNum) const
virtual bool Trace(aasTrace_t &trace, const idVec3 &start, const idVec3 &end) const
virtual idVec3 AreaCenter(int areaNum) const
idRoutingCache ** portalCacheIndex
virtual int TravelTimeToGoalArea(int areaNum, const idVec3 &origin, int goalAreaNum, int travelFlags) const