Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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)
 Returns whether the given vertex is visible (i.e. More...
 
bool IsExplored (ssize_t i, ssize_t j)
 Returns whether the given vertex is explored (i.e. More...
 
bool IsVisible_UncheckedRange (ssize_t i, ssize_t j)
 Returns whether the given vertex is visible (i.e. More...
 
bool IsExplored_UncheckedRange (ssize_t i, ssize_t j)
 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.

Definition at line 210 of file ICmpRangeManager.h.

Constructor & Destructor Documentation

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

Definition at line 216 of file ICmpRangeManager.h.

Member Function Documentation

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

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

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

Definition at line 242 of file ICmpRangeManager.h.

bool ICmpRangeManager::CLosQuerier::IsExplored_UncheckedRange ( ssize_t  i,
ssize_t  j 
)
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.

Definition at line 274 of file ICmpRangeManager.h.

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

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

is within a unit's LOS).

Definition at line 227 of file ICmpRangeManager.h.

bool ICmpRangeManager::CLosQuerier::IsVisible_UncheckedRange ( ssize_t  i,
ssize_t  j 
)
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.

Definition at line 258 of file ICmpRangeManager.h.

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

Friends And Related Function Documentation

friend class CCmpRangeManager
friend

Definition at line 213 of file ICmpRangeManager.h.

friend class TestLOSTexture
friend

Definition at line 214 of file ICmpRangeManager.h.

Member Data Documentation

const u32* ICmpRangeManager::CLosQuerier::m_Data
private

Definition at line 288 of file ICmpRangeManager.h.

u32 ICmpRangeManager::CLosQuerier::m_PlayerMask
private

Definition at line 287 of file ICmpRangeManager.h.

ssize_t ICmpRangeManager::CLosQuerier::m_VerticesPerSide
private

Definition at line 289 of file ICmpRangeManager.h.


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