~rebel/horde3d/trunk

« back to all changes in this revision

Viewing changes to trunk/Tools/Dependencies/RecastNavigation/DetourCrowd/Include/DetourProximityGrid.h

  • Committer: felix
  • Date: 2015-07-07 12:57:07 UTC
  • Revision ID: svn-v4:5ce291ac-9df0-446f-9e4f-d57731c4dda7::1699
- Updated RecastNavigation to latest version and fixed multiple issues.
- Adapted GameDetourComponent, GameDetourCrowdComponent, DetourCrowdDemo and AAA accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
class dtProximityGrid
23
23
{
24
 
        int m_maxItems;
25
24
        float m_cellSize;
26
25
        float m_invCellSize;
27
26
        
44
43
        dtProximityGrid();
45
44
        ~dtProximityGrid();
46
45
        
47
 
        bool init(const int maxItems, const float cellSize);
 
46
        bool init(const int poolSize, const float cellSize);
48
47
        
49
48
        void clear();
50
49
        
59
58
        int getItemCountAt(const int x, const int y) const;
60
59
        
61
60
        inline const int* getBounds() const { return m_bounds; }
62
 
        inline const float getCellSize() const { return m_cellSize; }
 
61
        inline float getCellSize() const { return m_cellSize; }
63
62
};
64
63
 
65
64
dtProximityGrid* dtAllocProximityGrid();