____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"
#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 | |
Definition in file script_map.cpp.
| static int CclCenterMap | ( | lua_State * | l | ) | [static] |
Center the map.
| 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
| 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.
| 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.
| 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
| 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.
| 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] |
Parse a map.
| l | Lua state. |
Definition at line 59 of file script_map.cpp.
References _C_, CMapInfo::Description, CMap::Fields, CMapInfo::Filename, CMapField::Flags, CMap::Info, CUnitCache::Init(), int(), LuaError, LuaToNumber(), LuaToString(), Map, MapFieldAirUnit, MapFieldBuilding, MapFieldCoastAllowed, MapFieldLandAllowed, MapFieldLandUnit, MapFieldNoBuilding, MapFieldSeaUnit, MapFieldUnpassable, MapFieldWaterAllowed, CMapInfo::MapHeight, CMapInfo::MapUID, CMapInfo::MapWidth, CMap::NoFogOfWar, sprintf_s(), StratagusFormatArgs, StratagusFormatString, StratagusVersion, UnitCache, CMapField::Visible, and CMap::Visible.
Referenced by MapCclRegister().
| 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().
1.5.6