LosState
Definition: Los.h:33
static constexpr i32 LOS_TILE_SIZE
Computing LOS data at a very high resolution is not necessary and quite slow.
Definition: Los.h:30
Range manager implementation.
Definition: CCmpRangeManager.cpp:353
Object providing efficient abstracted access to the LOS state.
Definition: Los.h:47
bool IsExplored(ssize_t i, ssize_t j) const
Returns whether the given vertex is explored (i.e.
Definition: Los.h:78
bool IsVisible_UncheckedRange(ssize_t i, ssize_t j) const
Returns whether the given vertex is visible (i.e.
Definition: Los.h:94
u32 m_PlayerMask
Definition: Los.h:123
CLosQuerier(u32 playerMask, const Grid< u32 > &data, ssize_t verticesPerSide)
Definition: Los.h:52
const CLosQuerier & operator=(const CLosQuerier &)
ssize_t m_VerticesPerSide
Definition: Los.h:125
const Grid< u32 > & m_Data
Definition: Los.h:124
bool IsVisible(ssize_t i, ssize_t j) const
Returns whether the given vertex is visible (i.e.
Definition: Los.h:63
friend class TestLOSTexture
Definition: Los.h:50
bool IsExplored_UncheckedRange(ssize_t i, ssize_t j) const
Returns whether the given vertex is explored (i.e.
Definition: Los.h:110
T & get(std::pair< u16, u16 > coords)
Definition: Grid.h:222
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Definition: debug.h:277
int32_t i32
Definition: types.h:34
uint8_t u8
Definition: types.h:37
uint32_t u32
Definition: types.h:39
intptr_t ssize_t
Definition: wposix_types.h:82