#include <mapcomposite.hpp>
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. | |
Actor * | objects [256] |
Static Public Attributes | |
static int const | int_bitsize = sizeof(unsigned) * 8 |
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.
unsigned ObjectBucket::bitmap[256/int_bitsize] |
short ObjectBucket::free |