Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: 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

## Data Structures

struct | BucketEntry

## Member Enumeration Documentation

anonymous enum

Enumerator:

  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

GameObject* Zap::GridDatabase::findObjectLOS | ( | U32 | typeMask,
|  | U32 | stateIndex,
|  | Point | rayStart,
|  | Point | rayEnd,
|  | float & | collisionTime,
|  | Point & | surfaceNormal |
| ) |  |  |

void Zap::GridDatabase::findObjects | ( | U32 | typeMask,
|  | Vector< GameObject * > & | fillVector,
|  | Rect & | extents |
| ) |  |  |

void Zap::GridDatabase::addToExtents | ( | GameObject * | theObject,
|  | Rect & | extents |
| ) |  |  |

void Zap::GridDatabase::removeFromExtents | ( | GameObject * | theObject,
|  | Rect & | extents |
| ) |  |  |

## Field Documentation

U32 Zap::GridDatabase::mQueryId

BucketEntry* Zap::GridDatabase::mBuckets[BucketRowCount][BucketRowCount]

ClassChunker<BucketEntry> Zap::GridDatabase::mChunker