_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
script_player.cpp File Reference
#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.
CUnitCclGetUnitFromRef (lua_State *l)
 For saving lua state. More...
 
static CPlayerCclGetPlayer (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...
 

Function Documentation

static int CclChangeUnitsOwner ( lua_State *  l)
static

Change unit owner

Parameters
lLua state.
static int CclDefineNewRaceNames ( lua_State *  l)
static

Define race names in addition to those already there.

Parameters
lLua state.
static int CclDefinePlayerColorIndex ( lua_State *  l)
static

Define player color indexes

Parameters
lLua state.
static int CclDefinePlayerColors ( lua_State *  l)
static

Define player colors

Parameters
lLua state.
static int CclDefineRaceNames ( lua_State *  l)
static

Define race names

Parameters
lLua state.
static int CclDiplomacy ( lua_State *  l)
static

Change the diplomacy from ThisPlayer to another player.

Parameters
lLua state.
static CPlayer* CclGetPlayer ( lua_State *  l)
static

Get a player pointer

Parameters
lLua state.
Returns
The player pointer
static int CclGetPlayerData ( lua_State *  l)
static

Get player data.

Parameters
lLua state.
static int CclGetThisPlayer ( lua_State *  l)
static

Get ThisPlayer.

Parameters
lLua state.
CUnit* CclGetUnitFromRef ( lua_State *  l)

For saving lua state.

Get a unit pointer from ref string

Parameters
lLua state.
Returns
The unit pointer
static int CclNewPlayerColors ( lua_State *  l)
static

Make new player colors

Parameters
lLua state.
static int CclPlayer ( lua_State *  l)
static

Parse the player configuration.

Parameters
lLua state.
static int CclSetAiType ( lua_State *  l)
static

Set ai player algo.

Parameters
lLua state.
static int CclSetAllPlayersBuildingLimit ( lua_State *  l)
static

Set player unit limit.

Parameters
lLua state.
static int CclSetAllPlayersTotalUnitLimit ( lua_State *  l)
static

Set player unit limit.

Parameters
lLua state.
static int CclSetAllPlayersUnitLimit ( lua_State *  l)
static

Set player unit limit.

Parameters
lLua state.
static int CclSetDiplomacy ( lua_State *  l)
static

Change the diplomacy from player to another player.

Parameters
lLua state.
Returns
FIXME: should return old state.
static int CclSetMaxSelectable ( lua_State *  l)
static

Set MaxSelectable

Parameters
lLua state.
static int CclSetPlayerData ( lua_State *  l)
static

Set player data.

Parameters
lLua state.
static int CclSetSharedVision ( lua_State *  l)
static

Change the shared vision from player to another player.

Parameters
lLua state.
Returns
FIXME: should return old state.
static int CclSetThisPlayer ( lua_State *  l)
static

Set ThisPlayer.

Parameters
lLua state.
static int CclSharedVision ( lua_State *  l)
static

Change the shared vision from ThisPlayer to another player.

Parameters
lLua state.
void PlayerCclRegister ( )

register ccl features

Register CCL features for players.

(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.