18 #ifndef INCLUDED_SELECTION
19 #define INCLUDED_SELECTION
34 namespace EntitySelection
87 player_id_t owner,
bool includeOffScreen,
bool matchRank,
bool allowEditorSelectables,
bool allowFoundations);
91 #endif // INCLUDED_SELECTION
std::vector< entity_id_t > 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.
std::vector< entity_id_t > PickEntitiesAtPoint(CSimulation2 &simulation, const CCamera &camera, int screenX, int screenY, player_id_t player, bool allowEditorSelectables)
Finds all selectable entities under the given screen coordinates.
Public API for simulation system.
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
std::vector< entity_id_t > 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 pl...