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

src/stratagus/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 "video.h"

Functions

script_player.cpp - The player ccl functions.
CUnitCclGetUnitFromRef (lua_State *l)
 For saving lua state.
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 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

Function Documentation

static int CclChangeUnitsOwner ( lua_State *  l  )  [static]

Change unit owner

Parameters:
l Lua state.

static int CclDefinePlayerColorIndex ( lua_State *  l  )  [static]

Define player color indexes

Parameters:
l Lua state.

static int CclDefinePlayerColors ( lua_State *  l  )  [static]

Define player colors

Parameters:
l Lua state.

static int CclDefineRaceNames ( lua_State *  l  )  [static]

Define race names

Parameters:
l Lua state.

static int CclDiplomacy ( lua_State *  l  )  [static]

Change the diplomacy from ThisPlayer to another player.

Parameters:
l Lua state.

static CPlayer* CclGetPlayer ( lua_State *  l  )  [static]

Get a player pointer

Parameters:
l Lua state.
Returns:
The player pointer

static int CclGetPlayerData ( lua_State *  l  )  [static]

Get player data.

Parameters:
l Lua state.

static int CclGetThisPlayer ( lua_State *  l  )  [static]

Get ThisPlayer.

Parameters:
l Lua state.

CUnit* CclGetUnitFromRef ( lua_State *  l  ) 

For saving lua state.

Get a unit pointer from ref string

Parameters:
l Lua state.
Returns:
The unit pointer

static int CclNewPlayerColors ( lua_State *  l  )  [static]

Make new player colors

Parameters:
l Lua state.

static int CclPlayer ( lua_State *  l  )  [static]

Parse the player configuration.

Parameters:
l Lua state.

static int CclSetAiType ( lua_State *  l  )  [static]

Set ai player algo.

Parameters:
l Lua state.

static int CclSetAllPlayersBuildingLimit ( lua_State *  l  )  [static]

Set player unit limit.

Parameters:
l Lua state.

static int CclSetAllPlayersTotalUnitLimit ( lua_State *  l  )  [static]

Set player unit limit.

Parameters:
l Lua state.

static int CclSetAllPlayersUnitLimit ( lua_State *  l  )  [static]

Set player unit limit.

Parameters:
l Lua state.

static int CclSetDiplomacy ( lua_State *  l  )  [static]

Change the diplomacy from player to another player.

Parameters:
l Lua state.
Returns:
FIXME: should return old state.

static int CclSetMaxSelectable ( lua_State *  l  )  [static]

Set MaxSelectable

Parameters:
l Lua state.

static int CclSetPlayerData ( lua_State *  l  )  [static]

Set player data.

Parameters:
l Lua state.

static int CclSetSharedVision ( lua_State *  l  )  [static]

Change the shared vision from player to another player.

Parameters:
l Lua state.
Returns:
FIXME: should return old state.

static int CclSetThisPlayer ( lua_State *  l  )  [static]

Set ThisPlayer.

Parameters:
l Lua state.

static int CclSharedVision ( lua_State *  l  )  [static]

Change the shared vision from ThisPlayer to another player.

Parameters:
l Lua 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.