Pyrogenesis  trunk
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ICmpRangeManager::CLosQuerier Class Reference

Object providing efficient abstracted access to the LOS state. More...

#include <ICmpRangeManager.h>

Public Member Functions

bool IsVisible (ssize_t i, ssize_t j) const
 Returns whether the given vertex is visible (i.e. More...
 
bool IsExplored (ssize_t i, ssize_t j) const
 Returns whether the given vertex is explored (i.e. More...
 
bool IsVisible_UncheckedRange (ssize_t i, ssize_t j) const
 Returns whether the given vertex is visible (i.e. More...
 
bool IsExplored_UncheckedRange (ssize_t i, ssize_t j) const
 Returns whether the given vertex is explored (i.e. More...
 

Private Member Functions

 CLosQuerier (u32 playerMask, const std::vector< u32 > &data, ssize_t verticesPerSide)
 
const CLosQuerieroperator= (const CLosQuerier &)
 

Private Attributes

u32 m_PlayerMask
 
const u32m_Data
 
ssize_t m_VerticesPerSide
 

Friends

class CCmpRangeManager
 
class TestLOSTexture
 

Detailed Description

Object providing efficient abstracted access to the LOS state.

This depends on some implementation details of CCmpRangeManager.

This ignores the GetLosRevealAll flag - callers should check that explicitly.

Constructor & Destructor Documentation

ICmpRangeManager::CLosQuerier::CLosQuerier ( u32  playerMask,
const std::vector< u32 > &  data,
ssize_t  verticesPerSide 
)
inlineprivate

Member Function Documentation

bool ICmpRangeManager::CLosQuerier::IsExplored ( ssize_t  i,
ssize_t  j 
) const
inline

Returns whether the given vertex is explored (i.e.

was (or still is) within a unit's LOS).

bool ICmpRangeManager::CLosQuerier::IsExplored_UncheckedRange ( ssize_t  i,
ssize_t  j 
) const
inline

Returns whether the given vertex is explored (i.e.

was (or still is) within a unit's LOS). i and j must be in the range [0, verticesPerSide), else behaviour is undefined.

bool ICmpRangeManager::CLosQuerier::IsVisible ( ssize_t  i,
ssize_t  j 
) const
inline

Returns whether the given vertex is visible (i.e.

is within a unit's LOS).

bool ICmpRangeManager::CLosQuerier::IsVisible_UncheckedRange ( ssize_t  i,
ssize_t  j 
) const
inline

Returns whether the given vertex is visible (i.e.

is within a unit's LOS). i and j must be in the range [0, verticesPerSide), else behaviour is undefined.

const CLosQuerier& ICmpRangeManager::CLosQuerier::operator= ( const CLosQuerier )
private

Friends And Related Function Documentation

friend class CCmpRangeManager
friend
friend class TestLOSTexture
friend

Member Data Documentation

const u32* ICmpRangeManager::CLosQuerier::m_Data
private
u32 ICmpRangeManager::CLosQuerier::m_PlayerMask
private
ssize_t ICmpRangeManager::CLosQuerier::m_VerticesPerSide
private

The documentation for this class was generated from the following file: