$treeview $search $mathjax
Stratagus
2.2.6
$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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stratagus.h"
#include "unittype.h"
#include "player.h"
#include "script.h"
#include "ai.h"
#include "actions.h"
#include "commands.h"
#include "map.h"
Functions | |
script_player.cpp - The player ccl functions. | |
CUnit * | CclGetUnitFromRef (lua_State *l) |
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 | 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 |
static int CclChangeUnitsOwner | ( | lua_State * | l | ) | [static] |
Change unit owner
l | Lua state. |
static int CclDefinePlayerColorIndex | ( | lua_State * | l | ) | [static] |
Define player color indexes
l | Lua state. |
static int CclDefinePlayerColors | ( | lua_State * | l | ) | [static] |
Define player colors
l | Lua state. |
static int CclDefineRaceNames | ( | lua_State * | l | ) | [static] |
Define race names
l | Lua state. |
static int CclDiplomacy | ( | lua_State * | l | ) | [static] |
Change the diplomacy from ThisPlayer to another player.
l | Lua state. |
static CPlayer* CclGetPlayer | ( | lua_State * | l | ) | [static] |
Get a player pointer
l | Lua state. |
static int CclGetPlayerData | ( | lua_State * | l | ) | [static] |
Get player data.
l | Lua state. |
static int CclGetThisPlayer | ( | lua_State * | l | ) | [static] |
Get ThisPlayer.
l | Lua state. |
CUnit* CclGetUnitFromRef | ( | lua_State * | l | ) |
Get a unit pointer from ref string
l | Lua state. |
static int CclNewPlayerColors | ( | lua_State * | l | ) | [static] |
Make new player colors
l | Lua state. |
static int CclPlayer | ( | lua_State * | l | ) | [static] |
Parse the player configuration.
l | Lua state. |
static int CclSetAiType | ( | lua_State * | l | ) | [static] |
Set ai player algo.
l | Lua state. |
static int CclSetAllPlayersBuildingLimit | ( | lua_State * | l | ) | [static] |
Set player unit limit.
l | Lua state. |
static int CclSetAllPlayersTotalUnitLimit | ( | lua_State * | l | ) | [static] |
Set player unit limit.
l | Lua state. |
static int CclSetAllPlayersUnitLimit | ( | lua_State * | l | ) | [static] |
Set player unit limit.
l | Lua state. |
static int CclSetDiplomacy | ( | lua_State * | l | ) | [static] |
Change the diplomacy from player to another player.
l | Lua state. |
static int CclSetMaxSelectable | ( | lua_State * | l | ) | [static] |
Set MaxSelectable
l | Lua state. |
static int CclSetPlayerData | ( | lua_State * | l | ) | [static] |
Set player data.
l | Lua state. |
static int CclSetSharedVision | ( | lua_State * | l | ) | [static] |
Change the shared vision from player to another player.
l | Lua state. |
static int CclSetThisPlayer | ( | lua_State * | l | ) | [static] |
Set ThisPlayer.
l | Lua state. |
static int CclSharedVision | ( | lua_State * | l | ) | [static] |
Change the shared vision from ThisPlayer to another player.
l | Lua state. |
void PlayerCclRegister | ( | ) |
register ccl features
Register CCL features for players.