Zap::GridDatabase class Reference
Zap::GridDatabase Class Reference
#include <gridDB.h>
|
Public Types |
enum | {
BucketWidth = 256,
BucketRowCount = 16,
BucketMask = BucketRowCount - 1
} |
Public Member Functions |
| GridDatabase () |
GameObject * | findObjectLOS (U32 typeMask, U32 stateIndex, Point rayStart, Point rayEnd, float &collisionTime, Point &surfaceNormal) |
void | findObjects (U32 typeMask, Vector< GameObject * > &fillVector, Rect &extents) |
void | addToExtents (GameObject *theObject, Rect &extents) |
void | removeFromExtents (GameObject *theObject, Rect &extents) |
Data Fields |
U32 | mQueryId |
BucketEntry * | mBuckets [BucketRowCount][BucketRowCount] |
ClassChunker< BucketEntry > | mChunker |
Member Enumeration Documentation
|
- Enumeration values:
-
BucketWidth |
Width/height of each bucket in pixels. |
BucketRowCount |
Number of buckets per grid row, and number of rows. |
BucketMask |
|
|
Constructor & Destructor Documentation
Zap::GridDatabase::GridDatabase |
( |
|
) |
|
|
Member Function Documentation
void Zap::GridDatabase::addToExtents |
( |
GameObject * |
theObject, |
|
|
Rect & |
extents |
|
) |
|
|
void Zap::GridDatabase::removeFromExtents |
( |
GameObject * |
theObject, |
|
|
Rect & |
extents |
|
) |
|
|
Field Documentation