Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 336 vs 337 for /trunk/Source Code/Libs/src/ReCast/DetourCrowd/Include/DetourPathQueue.h

Diff revisions: vs.
  @@ -28,47 +28,47 @@
28 28
29 29 class dtPathQueue
30 30 {
31 - struct PathQuery
32 - {
33 - dtPathQueueRef ref;
34 - /// Path find start and end location.
35 - float startPos[3], endPos[3];
36 - dtPolyRef startRef, endRef;
37 - /// Result.
38 - dtPolyRef* path;
39 - int npath;
40 - /// State.
41 - dtStatus status;
42 - int keepAlive;
43 - const dtQueryFilter* filter; ///< TODO: This is potentially dangerous!
44 - };
45 -
46 - static const int MAX_QUEUE = 8;
47 - PathQuery m_queue[MAX_QUEUE];
48 - dtPathQueueRef m_nextHandle;
49 - int m_maxPathSize;
50 - int m_queueHead;
51 - dtNavMeshQuery* m_navquery;
52 -
53 - void purge();
54 -
31 + struct PathQuery
32 + {
33 + dtPathQueueRef ref;
34 + /// Path find start and end location.
35 + float startPos[3], endPos[3];
36 + dtPolyRef startRef, endRef;
37 + /// Result.
38 + dtPolyRef* path;
39 + int npath;
40 + /// State.
41 + dtStatus status;
42 + int keepAlive;
43 + const dtQueryFilter* filter; ///< TODO: This is potentially dangerous!
44 + };
45 +
46 + static const int MAX_QUEUE = 8;
47 + PathQuery m_queue[MAX_QUEUE];
48 + dtPathQueueRef m_nextHandle;
49 + int m_maxPathSize;
50 + int m_queueHead;
51 + dtNavMeshQuery* m_navquery;
52 +
53 + void purge();
54 +
55 55 public:
56 - dtPathQueue();
57 - ~dtPathQueue();
58 -
59 - bool init(const int maxPathSize, const int maxSearchNodeCount, dtNavMesh* nav);
60 -
61 - void update(const int maxIters);
62 -
63 - dtPathQueueRef request(dtPolyRef startRef, dtPolyRef endRef,
64 - const float* startPos, const float* endPos,
65 - const dtQueryFilter* filter);
66 -
67 - dtStatus getRequestStatus(dtPathQueueRef ref) const;
68 -
69 - dtStatus getPathResult(dtPathQueueRef ref, dtPolyRef* path, int* pathSize, const int maxPath);
70 -
71 - inline const dtNavMeshQuery* getNavQuery() const { return m_navquery; }
56 + dtPathQueue();
57 + ~dtPathQueue();
58 +
59 + bool init(const int maxPathSize, const int maxSearchNodeCount, dtNavMesh* nav);
60 +
61 + void update(const int maxIters);
62 +
63 + dtPathQueueRef request(dtPolyRef startRef, dtPolyRef endRef,
64 + const float* startPos, const float* endPos,
65 + const dtQueryFilter* filter);
66 +
67 + dtStatus getRequestStatus(dtPathQueueRef ref) const;
68 +
69 + dtStatus getPathResult(dtPathQueueRef ref, dtPolyRef* path, int* pathSize, const int maxPath);
70 +
71 + inline const dtNavMeshQuery* getNavQuery() const { return m_navquery; }
72 72
73 73 };
74 74