$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
#include "stratagus.h"
#include "tileset.h"
#include "map.h"
#include "script.h"
Functions | |
script_tileset.cpp - The tileset ccl functions. | |
static void | ExtendTilesetTables (CTileset *tileset, unsigned int oldtiles, unsigned int newtiles) |
static int | TilesetParseName (lua_State *l, CTileset *tileset) |
static void | ParseTilesetTileFlags (lua_State *l, int *back, int *j) |
static void | DefineTilesetParseSpecial (lua_State *l, CTileset *tileset) |
static int | DefineTilesetParseSolid (lua_State *l, CTileset *tileset, int index) |
static int | DefineTilesetParseMixed (lua_State *l, CTileset *tileset, int index) |
static void | DefineTilesetParseSlot (lua_State *l, CTileset *tileset, int t) |
static int | CclDefineTileset (lua_State *l) |
static int | CclBuildTilesetTables (lua_State *l) |
static int | CclSetTileFlags (lua_State *l) |
void | TilesetCclRegister () |
Cleanup the tileset module. |
static int CclBuildTilesetTables | ( | lua_State * | l | ) | [static] |
Build tileset tables like HumanWallTable or MixedLookupTable
Called after LoadTileset and only for tilesets that have wall, trees and rocks. This function will be deleted when removing support of walls and alike in the tileset.
static int CclDefineTileset | ( | lua_State * | l | ) | [static] |
Define tileset
l | Lua state. |
static int CclSetTileFlags | ( | lua_State * | l | ) | [static] |
Set the flags like "water" for a tile of a tileset
l | Lua state. |
static int DefineTilesetParseMixed | ( | lua_State * | l, | |
CTileset * | tileset, | |||
int | index | |||
) | [static] |
Parse the mixed slot part of a tileset definition
l | Lua state. | |
tileset | Tileset to be filled. | |
index | Current table index. |
static void DefineTilesetParseSlot | ( | lua_State * | l, | |
CTileset * | tileset, | |||
int | t | |||
) | [static] |
Parse the slot part of a tileset definition
l | Lua state. | |
tileset | Tileset to be filled. | |
t | FIXME: docu |
static int DefineTilesetParseSolid | ( | lua_State * | l, | |
CTileset * | tileset, | |||
int | index | |||
) | [static] |
Parse the solid slot part of a tileset definition
l | Lua state. | |
tileset | Tileset to be filled. | |
index | Current table index. |
static void DefineTilesetParseSpecial | ( | lua_State * | l, | |
CTileset * | tileset | |||
) | [static] |
Parse the special slot part of a tileset definition
l | Lua state. | |
tileset | Tileset to be filled. |
static void ExtendTilesetTables | ( | CTileset * | tileset, | |
unsigned int | oldtiles, | |||
unsigned int | newtiles | |||
) | [static] |
Extend tables of the tileset.
tileset | Tileset to be extended. | |
oldtiles | Number of old tiles. | |
newtiles | Number of new tiles. |
static void ParseTilesetTileFlags | ( | lua_State * | l, | |
int * | back, | |||
int * | j | |||
) | [static] |
Parse the flag section of a tile definition.
l | Lua state. | |
back | pointer for the flags (return). | |
j | pointer for the location in the array. in and out |
void TilesetCclRegister | ( | ) |
Cleanup the tileset module.
Register CCL features for tileset.
static int TilesetParseName | ( | lua_State * | l, | |
CTileset * | tileset | |||
) | [static] |
Parse the name field in tileset definition.
l | Lua state. | |
tileset | Tileset currently parsed. |