_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 "unit.h"
#include "actions.h"
#include "animation.h"
#include "commands.h"
#include "construct.h"
#include "interface.h"
#include "map.h"
#include "pathfinder.h"
#include "player.h"
#include "script.h"
#include "spells.h"
#include "trigger.h"
#include "unit_find.h"
#include "unit_manager.h"
#include "unittype.h"
#include "upgrade.h"
Classes | |
class | HasSameUnitTypeAs |
Functions | |
script_unit.cpp - The unit ccl functions. | |
unsigned | CclGetResourceByName (lua_State *l) |
Get resource by name. More... | |
static int | CclSetTrainingQueue (lua_State *l) |
static int | CclSetBuildingCapture (lua_State *l) |
static int | CclSetRevealAttacker (lua_State *l) |
static int | CclResourcesMultiBuildersMultiplier (lua_State *l) |
static CUnit * | CclGetUnit (lua_State *l) |
CUnit * | CclGetUnitFromRef (lua_State *l) |
For saving lua state. More... | |
static void | CclParseOrders (lua_State *l, CUnit &unit) |
static int | CclUnit (lua_State *l) |
static int | CclMoveUnit (lua_State *l) |
static int | CclRemoveUnit (lua_State *l) |
static int | CclCreateUnit (lua_State *l) |
static int | CclTransformUnit (lua_State *l) |
static int | CclDamageUnit (lua_State *l) |
static int | CclSetResourcesHeld (lua_State *l) |
static int | CclSetTeleportDestination (lua_State *l) |
static int | CclOrderUnit (lua_State *l) |
static int | CclKillUnit (lua_State *l) |
static int | CclKillUnitAt (lua_State *l) |
static int | CclGetUnits (lua_State *l) |
static int | CclGetUnitsAroundUnit (lua_State *l) |
static int | CclGetUnitBoolFlag (lua_State *l) |
static int | CclGetUnitVariable (lua_State *l) |
static int | CclSetUnitVariable (lua_State *l) |
static int | CclSlotUsage (lua_State *l) |
static int | CclSelectSingleUnit (lua_State *l) |
void | UnitCclRegister () |
register CCL units features More... | |
|
static |
Create a unit and place it on the map
l | Lua state. |
|
static |
Damages unit, additionally using another unit as first's attacker
l | Lua state. |
unsigned CclGetResourceByName | ( | lua_State * | l | ) |
Get resource by name.
Get the resource ID from a SCM object.
l | Lua state. |
|
static |
Get a unit pointer
l | Lua state. |
|
static |
Get the value of the unit bool-flag.
l | Lua state. |
CUnit* CclGetUnitFromRef | ( | lua_State * | l | ) |
For saving lua state.
Get a unit pointer from ref string
l | Lua state. |
|
static |
Get a player's units
l | Lua state. |
|
static |
Get a player's units in rectangle box specified with 2 coordinates
l | Lua state. |
|
static |
Get the value of the unit variable.
l | Lua state. |
|
static |
Kill a unit
l | Lua state. |
|
static |
Kill a unit at a location
l | Lua state. |
|
static |
Move a unit on map.
l | Lua state. |
|
static |
Order a unit
l | Lua state. |
OrderUnit(player, unit-type, sloc, dloc, order)
|
static |
Parse orders.
l | Lua state. |
unit | Unit pointer which should get the orders. |
|
static |
Remove unit from the map.
l | Lua state. |
|
static |
Set cost multiplier to RepairCost for buildings additional workers helping (0 = no additional cost)
l | Lua state. |
|
static |
|
static |
Set capture buildings
l | Lua state. |
|
static |
Set resources held by a unit
l | Lua state. |
|
static |
Set reveal attacker
l | Lua state. |
|
static |
Set teleport deastination for teleporter unit
l | Lua state. |
|
static |
Set training queue
l | Lua state. |
|
static |
Set the value of the unit variable.
l | Lua state. |
|
static |
Get the usage of unit slots during load to allocate memory
l | Lua state. |
|
static |
'Upgrade' a unit in place to a unit of different type.
l | Lua state. |
|
static |
Parse unit
l | Lua state. |
Verify that vision table is always correct (transporter)
(PlaceUnit() and host-info).
void UnitCclRegister | ( | ) |
register CCL units features
Register CCL features for unit.