Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include "unit_util.h"
Go to the source code of this file.
Classes | |
class | NearestUnitLocator |
class | NearestBoltLocator |
class | NearestObjectLocator |
class | NearestNavLocator |
class | NearestNavOrCapshipLocator |
class | UnitWithinRangeLocator< T > |
class | UnitWithinRangeOfPosition< T > |
class | UnitPtrLocator |
Functions | |
template<class Locator > | |
void | findObjectsFromPosition (CollideMap *cm, CollideMap::iterator location, Locator *check, QVector thispos, float thisrad, bool acquire_on_location) |
template<class Locator > | |
void | findObjects (CollideMap *cm, CollideMap::iterator location, Locator *check) |
void findObjects | ( | CollideMap * | cm, |
CollideMap::iterator | location, | ||
Locator * | check | ||
) |
Definition at line 72 of file unit_find.h.
References findObjectsFromPosition(), is_null(), and QVector.
Referenced by CalculateNearestWarpUnit(), ChooseNearNavPoint(), Orders::FireAt::ChooseTargets(), Radar::Sensor::FindTracksInRange(), CommunicatingAI::GetRandomUnit(), and UniverseUtil::getUnitByPtr().
void findObjectsFromPosition | ( | CollideMap * | cm, |
CollideMap::iterator | location, | ||
Locator * | check, | ||
QVector | thispos, | ||
float | thisrad, | ||
bool | acquire_on_location | ||
) |
Definition at line 5 of file unit_find.h.
References CollideArray::begin(), CollideArray::end(), f, is_null(), CollideArray::Iterable(), Magnitude(), Collidable::radius, and CollideArray::CollidableBackref::toflattenhints_offset.
Referenced by GameStarSystem::Draw(), and findObjects().