22 #ifndef ULTIMA8_MISC_IDMAN_H 23 #define ULTIMA8_MISC_IDMAN_H 25 #include "common/array.h" 63 idMan(uint16 begin, uint16 max_end, uint16 startcount = 0);
68 return _first == 0 && _end >= _maxEnd;
72 void clearAll(uint16 new_max = 0);
81 bool reserveID(uint16
id);
84 void clearID(uint16
id);
88 return id >= _begin &&
id <= _end && _ids[id] == 0 &&
id != _last;
bool isIDUsed(uint16 id) const
check if an ID is in use
Definition: id_man.h:87
Definition: detection.h:27
void setNewMax(uint16 maxEnd)
Definition: id_man.h:96
Definition: algorithm.h:29
bool isFull() const
check if this idMan is full
Definition: id_man.h:67