43 sObjects[nId] =
static_cast<T *
>(
this);
Base of an object that occupies a slot of a global identifier table.
Definition idablebase.h:17
int mId
Definition idablebase.h:31
IDable(int nId)
Register the object in sObjects under an identifier.
Definition idable.h:40
static std::vector< T * > sObjects
Every registered object, indexed by mId.
Definition idable.h:64
virtual ~IDable()
Release the table slot this object occupies.
Definition idable.h:79
constexpr int kIDableInitialSlots
Slots each identifier table starts with, one per player.
Definition idable.h:72
constexpr int kIDableUnregistered
Identifier a never-registered object stores, distinct from any real index.
Definition idablebase.h:4