$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
#include "stratagus.h"
#include "animation/animation_spawnunit.h"
#include "map.h"
#include "unit.h"
Functions | |
animation_spawnunit.cpp - The animation SpawnUnit. | |
static void | FindNearestDrop (const CUnitType &type, const Vec2i &goalPos, Vec2i &resPos, int heading) |
static void FindNearestDrop | ( | const CUnitType & | type, | |
const Vec2i & | goalPos, | |||
Vec2i & | resPos, | |||
int | heading | |||
) | [static] |
Find the nearest position at which unit can be placed.
type | Type of the dropped unit. | |
goalPos | Goal map tile position. | |
resPos | Holds the nearest point. | |
heading | preferense side to drop out of. |