Pyrogenesis  trunk
Namespaces | Functions
Selection.h File Reference

Helper functions related to entity selection. More...

#include "simulation2/system/Entity.h"
#include "Player.h"
#include <vector>
Include dependency graph for Selection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 EntitySelection
 

Functions

entity_id_t EntitySelection::PickEntityAtPoint (CSimulation2 &simulation, const CCamera &camera, int screenX, int screenY, player_id_t player, bool allowEditorSelectables)
 Finds all selectable entities under the given screen coordinates. More...
 
std::vector< entity_id_tEntitySelection::PickEntitiesInRect (CSimulation2 &simulation, const CCamera &camera, int sx0, int sy0, int sx1, int sy1, player_id_t owner, bool allowEditorSelectables)
 Finds all selectable entities within the given screen coordinate rectangle, belonging to the given player. More...
 
std::vector< entity_id_tEntitySelection::PickNonGaiaEntitiesInRect (CSimulation2 &simulation, const CCamera &camera, int sx0, int sy0, int sx1, int sy1, bool allowEditorSelectables)
 Finds all selectable entities within the given screen coordinate rectangle, belonging to any given player (excluding Gaia). More...
 
std::vector< entity_id_tEntitySelection::PickSimilarEntities (CSimulation2 &simulation, const CCamera &camera, const std::string &templateName, player_id_t owner, bool includeOffScreen, bool matchRank, bool allowEditorSelectables, bool allowFoundations)
 Finds all entities with the given entity template name, belonging to the given player. More...
 

Detailed Description

Helper functions related to entity selection.