#include <id.hpp>
Public Member Functions | |
unit_id () | |
unit_id (size_t val) | |
bool | is_fake () const |
bool | is_empty () const |
Static Public Member Functions | |
static unit_id | create_real (size_t val) |
static unit_id | create_fake (size_t val) |
Public Attributes | |
size_t | value |
Static Public Attributes | |
static const size_t | highest_bit = static_cast<size_t>(1) << (sizeof(size_t) * 8 - 1) |
Friends | |
bool | operator< (unit_id a, unit_id b) |
bool | operator<= (unit_id a, unit_id b) |
bool | operator== (unit_id a, unit_id b) |
bool | operator>= (unit_id a, unit_id b) |
bool | operator> (unit_id a, unit_id b) |
|
inline |
Definition at line 27 of file id.hpp.
Referenced by create_fake(), and create_real().
|
inlinestatic |
Definition at line 36 of file id.hpp.
References unit_id().
Referenced by n_unit::id_manager::next_fake_id().
|
inlinestatic |
Definition at line 35 of file id.hpp.
References unit_id().
Referenced by n_unit::id_manager::next_id(), and unit::unit().
|
inline |
|
inline |
Definition at line 32 of file id.hpp.
Referenced by unit::is_visible_to_team().
|
static |
Definition at line 29 of file id.hpp.
Referenced by n_unit::id_manager::next_fake_id(), and n_unit::id_manager::next_id().
size_t n_unit::unit_id::value |
Definition at line 30 of file id.hpp.
Referenced by is_empty(), unit::set_underlying_id(), unit::underlying_id(), and unit::write().