ObjectBucket Struct Reference

Pool of public IDs for MovingObjects on a map. More...

#include <mapcomposite.hpp>

List of all members.

Public Member Functions

int allocate ()
void deallocate (int)

Public Attributes

unsigned bitmap [256/int_bitsize]
 Bitmap of free locations.
short free
 Number of empty places.
short next_object
 Next object to look at.
Actorobjects [256]

Static Public Attributes

static int const int_bitsize = sizeof(unsigned) * 8


Detailed Description

Pool of public IDs for MovingObjects on a map.

By maintaining public ID availability using bits, it can locate an available public ID fast while using minimal memory access.

Definition at line 159 of file mapcomposite.hpp.


Member Data Documentation

unsigned ObjectBucket::bitmap[256/int_bitsize]

Bitmap of free locations.

Definition at line 162 of file mapcomposite.hpp.

Number of empty places.

Definition at line 163 of file mapcomposite.hpp.

Next object to look at.

Definition at line 164 of file mapcomposite.hpp.


The documentation for this struct was generated from the following files:

Generated on Sun Apr 26 17:30:46 2009 for TMW Server Collection by  doxygen 1.5.5