$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/map/script_map.cpp File Reference

#include "stratagus.h"
#include "map.h"
#include "iolib.h"
#include "minimap.h"
#include "player.h"
#include "script.h"
#include "ui.h"
#include "unit.h"
#include "unittype.h"
#include "version.h"

Functions

script_map.cpp - The map ccl functions.
static int CclStratagusMap (lua_State *l)
static int CclRevealMap (lua_State *l)
static int CclCenterMap (lua_State *l)
static int CclSetStartView (lua_State *l)
static int CclShowMapLocation (lua_State *l)
static int CclSetFogOfWar (lua_State *l)
static int CclGetFogOfWar (lua_State *l)
static int CclSetMinimapTerrain (lua_State *l)
static int CclSetFogOfWarOpacity (lua_State *l)
static int CclSetForestRegeneration (lua_State *l)
static int CclSetFogOfWarColor (lua_State *l)
static int CclSetFogOfWarGraphics (lua_State *l)
void SetTile (int tile, const Vec2i &pos, int value)
static int CclDefinePlayerTypes (lua_State *l)
static int CclLoadTileModels (lua_State *l)
void MapCclRegister ()
 register ccl features

Function Documentation

static int CclCenterMap ( lua_State *  l  )  [static]

Center the map.

Parameters:
l Lua state.

static int CclDefinePlayerTypes ( lua_State *  l  )  [static]

Define the type of each player available for the map

Parameters:
l Lua state.

static int CclGetFogOfWar ( lua_State *  l  )  [static]

static int CclLoadTileModels ( lua_State *  l  )  [static]

Load the lua file which will define the tile models

Parameters:
l Lua state.

static int CclRevealMap ( lua_State *  l  )  [static]

Reveal the complete map.

Parameters:
l Lua state.

static int CclSetFogOfWar ( lua_State *  l  )  [static]

Set fog of war on/off.

Parameters:
l Lua state.

static int CclSetFogOfWarColor ( lua_State *  l  )  [static]

Set Fog color.

Parameters:
l Lua state.

static int CclSetFogOfWarGraphics ( lua_State *  l  )  [static]

Define Fog graphics

Parameters:
l Lua state.

static int CclSetFogOfWarOpacity ( lua_State *  l  )  [static]

Fog of war opacity.

Parameters:
l Lua state.

static int CclSetForestRegeneration ( lua_State *  l  )  [static]

Set forest regeneration speed.

Parameters:
l Lua state.
Returns:
Old speed

static int CclSetMinimapTerrain ( lua_State *  l  )  [static]

Enable display of terrain in minimap.

Parameters:
l Lua state.

static int CclSetStartView ( lua_State *  l  )  [static]

Define the starting viewpoint for a given player.

Parameters:
l Lua state.

static int CclShowMapLocation ( lua_State *  l  )  [static]

Show Map Location

Parameters:
l Lua state.

static int CclStratagusMap ( lua_State *  l  )  [static]

Parse a map.

Parameters:
l Lua state.

void MapCclRegister (  ) 

register ccl features

Register CCL features for map.

void SetTile ( int  tile,
const Vec2i pos,
int  value 
)

Set a tile

Parameters:
tile Tile number
pos coordinate
value Value of the tile

(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.