_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 "player.h"
#include "actions.h"
#include "ai.h"
#include "commands.h"
#include "map.h"
#include "script.h"
#include "unittype.h"
#include "unit.h"
#include "unit_find.h"
#include "upgrade.h"
#include "video.h"
Functions | |
script_player.cpp - The player ccl functions. | |
CUnit * | CclGetUnitFromRef (lua_State *l) |
For saving lua state. More... | |
static CPlayer * | CclGetPlayer (lua_State *l) |
static int | CclPlayer (lua_State *l) |
static int | CclChangeUnitsOwner (lua_State *l) |
static int | CclGetThisPlayer (lua_State *l) |
static int | CclSetThisPlayer (lua_State *l) |
static int | CclSetMaxSelectable (lua_State *l) |
static int | CclSetAllPlayersUnitLimit (lua_State *l) |
static int | CclSetAllPlayersBuildingLimit (lua_State *l) |
static int | CclSetAllPlayersTotalUnitLimit (lua_State *l) |
static int | CclSetDiplomacy (lua_State *l) |
static int | CclDiplomacy (lua_State *l) |
static int | CclSetSharedVision (lua_State *l) |
static int | CclSharedVision (lua_State *l) |
static int | CclDefineNewRaceNames (lua_State *l) |
static int | CclDefineRaceNames (lua_State *l) |
static int | CclDefinePlayerColors (lua_State *l) |
static int | CclNewPlayerColors (lua_State *l) |
static int | CclDefinePlayerColorIndex (lua_State *l) |
static int | CclGetPlayerData (lua_State *l) |
static int | CclSetPlayerData (lua_State *l) |
static int | CclSetAiType (lua_State *l) |
void | PlayerCclRegister () |
register ccl features More... | |
|
static |
Change unit owner
l | Lua state. |
|
static |
Define race names in addition to those already there.
l | Lua state. |
|
static |
Define player color indexes
l | Lua state. |
|
static |
Define player colors
l | Lua state. |
|
static |
Define race names
l | Lua state. |
|
static |
Change the diplomacy from ThisPlayer to another player.
l | Lua state. |
|
static |
Get a player pointer
l | Lua state. |
|
static |
Get player data.
l | Lua state. |
|
static |
Get ThisPlayer.
l | Lua state. |
CUnit* CclGetUnitFromRef | ( | lua_State * | l | ) |
For saving lua state.
Get a unit pointer from ref string
l | Lua state. |
|
static |
Make new player colors
l | Lua state. |
|
static |
Parse the player configuration.
l | Lua state. |
|
static |
Set ai player algo.
l | Lua state. |
|
static |
Set player unit limit.
l | Lua state. |
|
static |
Set player unit limit.
l | Lua state. |
|
static |
Set player unit limit.
l | Lua state. |
|
static |
Change the diplomacy from player to another player.
l | Lua state. |
|
static |
Set MaxSelectable
l | Lua state. |
|
static |
Set player data.
l | Lua state. |
|
static |
Change the shared vision from player to another player.
l | Lua state. |
|
static |
Set ThisPlayer.
l | Lua state. |
|
static |
Change the shared vision from ThisPlayer to another player.
l | Lua state. |
void PlayerCclRegister | ( | ) |
register ccl features
Register CCL features for players.