$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
Public Member Functions | |
BestRangeTargetFinder (const CUnit &a, const int r) | |
CUnit * | Find (std::vector< CUnit * > &table) |
CUnit * | Find (CUnitCache &cache) |
Classes | |
class | FillBadGood |
Choose the best target, that can be attacked. It takes into account allied unit which could be hit by the missile
Limited to attack range smaller than 16.
Will be moved to unit_ai.c soon.
BestRangeTargetFinder::BestRangeTargetFinder | ( | const CUnit & | a, | |
const int | r | |||
) | [inline] |
a | Find in distance for this unit. | |
range | Distance range to look. |
CUnit* BestRangeTargetFinder::Find | ( | CUnitCache & | cache | ) | [inline] |