Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Selection.cpp File Reference
Include dependency graph for Selection.cpp:

Functions

bool CheckEntityInRect (CEntityHandle handle, const CCamera &camera, int sx0, int sy0, int sx1, int sy1, bool allowEditorSelectables)
 Returns true if the given entity is visible in the given screen area. More...
 
static bool CheckEntityVisibleAndInRect (CEntityHandle handle, CmpPtr< ICmpRangeManager > cmpRangeManager, const CCamera &camera, int sx0, int sy0, int sx1, int sy1, player_id_t player, bool allowEditorSelectables)
 Returns true if the given entity is visible to the given player and visible in the given screen area. More...
 

Function Documentation

◆ CheckEntityInRect()

bool CheckEntityInRect ( CEntityHandle  handle,
const CCamera camera,
int  sx0,
int  sy0,
int  sx1,
int  sy1,
bool  allowEditorSelectables 
)

Returns true if the given entity is visible in the given screen area.

If the entity is a decorative, the function will only return true if allowEditorSelectables.

◆ CheckEntityVisibleAndInRect()

static bool CheckEntityVisibleAndInRect ( CEntityHandle  handle,
CmpPtr< ICmpRangeManager cmpRangeManager,
const CCamera camera,
int  sx0,
int  sy0,
int  sx1,
int  sy1,
player_id_t  player,
bool  allowEditorSelectables 
)
static

Returns true if the given entity is visible to the given player and visible in the given screen area.