LosState
Definition: Los.h:34
static constexpr std::int32_t LOS_TILE_SIZE
Computing LOS data at a very high resolution is not necessary and quite slow.
Definition: Los.h:31
Range manager implementation.
Definition: CCmpRangeManager.cpp:415
Object providing efficient abstracted access to the LOS state.
Definition: Los.h:48
bool IsExplored(ssize_t i, ssize_t j) const
Returns whether the given vertex is explored (i.e.
Definition: Los.h:79
const Grid< std::uint32_t > & m_Data
Definition: Los.h:125
bool IsVisible_UncheckedRange(ssize_t i, ssize_t j) const
Returns whether the given vertex is visible (i.e.
Definition: Los.h:95
const CLosQuerier & operator=(const CLosQuerier &)
ssize_t m_VerticesPerSide
Definition: Los.h:126
bool IsVisible(ssize_t i, ssize_t j) const
Returns whether the given vertex is visible (i.e.
Definition: Los.h:64
CLosQuerier(std::uint32_t playerMask, const Grid< std::uint32_t > &data, ssize_t verticesPerSide)
Definition: Los.h:53
std::uint32_t m_PlayerMask
Definition: Los.h:124
friend class TestLOSTexture
Definition: Los.h:51
bool IsExplored_UncheckedRange(ssize_t i, ssize_t j) const
Returns whether the given vertex is explored (i.e.
Definition: Los.h:111
T & get(std::pair< std::uint16_t, std::uint16_t > coords)
Definition: Grid.h:215
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Definition: debug.h:222
intptr_t ssize_t
Definition: wposix_types.h:36