Pyrogenesis  trunk
Functions
Selection.cpp File Reference
#include "precompiled.h"
#include "Selection.h"
#include "graphics/Camera.h"
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpIdentity.h"
#include "simulation2/components/ICmpOwnership.h"
#include "simulation2/components/ICmpRangeManager.h"
#include "simulation2/components/ICmpTemplateManager.h"
#include "simulation2/components/ICmpSelectable.h"
#include "simulation2/components/ICmpVisual.h"
#include "simulation2/components/ICmpUnitRenderer.h"
#include "simulation2/system/ComponentManager.h"
#include "ps/CLogger.h"
#include "ps/Profiler2.h"
Include dependency graph for Selection.cpp:

Functions

static 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

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

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.

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.