____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

script_map.cpp File Reference

The map ccl functions. More...

#include <string.h>
#include <stdio.h>
#include "stratagus.h"
#include "unit.h"
#include "unit_cache.h"
#include "script.h"
#include "map.h"
#include "minimap.h"
#include "ui.h"
#include "player.h"
#include "iolib.h"
#include "video.h"
#include "version.h"

Go to the source code of this file.

Functions

static int CclStratagusMap (lua_State *l)
static int CclRevealMap (lua_State *l)
static int CclCenterMap (lua_State *l)
static int CclSetFogOfWar (lua_State *l)
static int CclGetFogOfWar (lua_State *l)
static int CclSetMinimapTerrain (lua_State *l)
static int CclSetFogOfWarGraphics (lua_State *l)
static int CclDefinePlayerTypes (lua_State *l)
void MapCclRegister (void)
 < register ccl features


Detailed Description

The map ccl functions.

Definition in file script_map.cpp.


Function Documentation

static int CclCenterMap ( lua_State *  l  )  [static]

Center the map.

Parameters:
l Lua state.

Definition at line 226 of file script_map.cpp.

References CViewport::Center(), LuaCheckArgs, LuaToNumber(), CUserInterface::SelectedViewport, TileSizeX, TileSizeY, and UI.

Referenced by MapCclRegister().

static int CclDefinePlayerTypes ( lua_State *  l  )  [static]

Define the type of each player available for the map

Parameters:
l Lua state.

Definition at line 295 of file script_map.cpp.

References _C_, CMap::Info, LuaError, LuaToString(), Map, PlayerComputer, PlayerMax, PlayerNeutral, PlayerNobody, PlayerPerson, PlayerRescueActive, PlayerRescuePassive, and CMapInfo::PlayerType.

Referenced by MapCclRegister().

static int CclGetFogOfWar ( lua_State *  l  )  [static]

Definition at line 252 of file script_map.cpp.

References LuaCheckArgs, Map, and CMap::NoFogOfWar.

Referenced by MapCclRegister().

static int CclRevealMap ( lua_State *  l  )  [static]

Reveal the complete map.

Parameters:
l Lua state.

Definition at line 209 of file script_map.cpp.

References CclInConfigFile, CMap::Fields, FlagRevealMap, LuaCheckArgs, Map, and CMap::Reveal().

Referenced by MapCclRegister().

static int CclSetFogOfWar ( lua_State *  l  )  [static]

Set fog of war on/off.

Parameters:
l Lua state.

Definition at line 240 of file script_map.cpp.

References CclInConfigFile, CMap::Fields, LuaCheckArgs, LuaToBoolean(), Map, CMap::NoFogOfWar, and UpdateFogOfWarChange().

Referenced by MapCclRegister().

static int CclSetFogOfWarGraphics ( lua_State *  l  )  [static]

Define Fog graphics

Parameters:
l Lua state.

Definition at line 276 of file script_map.cpp.

References CMap::FogGraphic, CGraphic::Free(), LuaCheckArgs, LuaToString(), CGraphic::New(), TileSizeX, and TileSizeY.

Referenced by MapCclRegister().

static int CclSetMinimapTerrain ( lua_State *  l  )  [static]

Enable display of terrain in minimap.

Parameters:
l Lua state.

Definition at line 264 of file script_map.cpp.

References LuaCheckArgs, LuaToBoolean(), CUserInterface::Minimap, UI, and CMinimap::WithTerrain.

Referenced by MapCclRegister().

static int CclStratagusMap ( lua_State *  l  )  [static]

void MapCclRegister ( void   ) 

< register ccl features

Register CCL features for map.

Definition at line 340 of file script_map.cpp.

References CclCenterMap(), CclDefinePlayerTypes(), CclGetFogOfWar(), CclRevealMap(), CclSetFogOfWar(), CclSetFogOfWarGraphics(), CclSetMinimapTerrain(), CclStratagusMap(), and Lua.

Referenced by InitCcl().


Generated on Sat Feb 21 00:28:18 2009 for Bos Wars by  doxygen 1.5.6