Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Functor for sorting entities by distance from a source point. More...
Public Member Functions | |
EntityDistanceOrdering (const EntityMap< EntityData > &entities, const CFixedVector2D &source) | |
EntityDistanceOrdering (const EntityDistanceOrdering &entity)=default | |
bool | operator() (entity_id_t a, entity_id_t b) const |
Public Attributes | |
const EntityMap< EntityData > & | m_EntityData |
CFixedVector2D | m_Source |
Private Member Functions | |
EntityDistanceOrdering & | operator= (const EntityDistanceOrdering &) |
Functor for sorting entities by distance from a source point.
It must only be passed entities that are in 'entities' and are currently in the world.
|
inline |
|
default |
|
inline |
|
private |
const EntityMap<EntityData>& anonymous_namespace{CCmpRangeManager.cpp}::EntityDistanceOrdering::m_EntityData |
CFixedVector2D anonymous_namespace{CCmpRangeManager.cpp}::EntityDistanceOrdering::m_Source |