_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 "spell/spell_spawnmissile.h"
#include "map.h"
#include "missile.h"
#include "script.h"
#include "unit.h"
#include "unit_find.h"
Classes | |
struct | CompareUnitDistance |
Functions | |
spell_spawnmissile.cpp - The spell SpawnMissile. | |
static void | CclSpellMissileLocation (lua_State *l, SpellActionMissileLocation *location) |
static void | EvaluateMissileLocation (const SpellActionMissileLocation &location, CUnit &caster, CUnit *target, const Vec2i &goalPos, PixelPos *res) |
|
static |
Parse the missile location description for a spell action.
l | Lua state. |
location | Pointer to missile location description. |
|
static |
Evaluate missile location description.
location | Parameters for location. |
caster | Unit that casts the spell |
target | Target unit that spell is addressed to |
goalPos | TilePos of target spot when/if target does not exist |
res | pointer to PixelPos of the result |