#include <string>
#include "map/location.hpp"
#include "map/map.hpp"
#include "terrain/type_data.hpp"
Go to the source code of this file.
Classes | |
class | mapgen_gamemap |
Namespaces | |
lua_terrainmap | |
Functions | |
int | intf_terrain_mask (lua_State *L) |
Replaces part of the map. More... | |
bool | luaW_isterrainmap (lua_State *L, int index) |
gamemap_base * | luaW_toterrainmap (lua_State *L, int index) |
gamemap_base & | luaW_checkterrainmap (lua_State *L, int index) |
void | lua_terrainmap_setmetatable (lua_State *L) |
int | intf_terrainmap_create (lua_State *L) |
Create a map. More... | |
int | intf_terrainmap_get (lua_State *L) |
int | intf_replace_if_failed (lua_State *L) |
int | intf_terrainmap_iter (lua_State *L) |
int | intf_on_board (lua_State *L) |
int | intf_on_border (lua_State *L) |
std::string | lua_terrainmap::register_metatables (lua_State *L) |
int intf_on_board | ( | lua_State * | L | ) |
Definition at line 404 of file lua_terrainmap.cpp.
References luaW_checklocation(), luaW_checkterrainmap(), luaW_toboolean(), gamemap_base::on_board(), and gamemap_base::on_board_with_border().
Referenced by game_lua_kernel::game_lua_kernel().
int intf_on_border | ( | lua_State * | L | ) |
Definition at line 414 of file lua_terrainmap.cpp.
References luaW_checklocation(), luaW_checkterrainmap(), gamemap_base::on_board(), and gamemap_base::on_board_with_border().
Referenced by game_lua_kernel::game_lua_kernel().
int intf_replace_if_failed | ( | lua_State * | L | ) |
Definition at line 534 of file lua_terrainmap.cpp.
References terrain_type_data::BASE, terrain_type_data::BOTH, replace_if_failed_idx::CODE, mapReplaceIfFailedKey, replace_if_failed_idx::MODE, and terrain_type_data::OVERLAY.
Referenced by game_lua_kernel::game_lua_kernel().
int intf_terrain_mask | ( | lua_State * | L | ) |
Replaces part of the map.
Definition at line 481 of file lua_terrainmap.cpp.
References resources::controller, resources::gameboard, play_controller::get_display(), is_odd(), luaW_checklocation(), luaW_checkterrainmap(), luaW_table_get_def(), luaW_tableget(), game_display::needs_rebuild(), gamemap_base::overlay(), read_rules_vector(), and t.
Referenced by game_lua_kernel::game_lua_kernel().
int intf_terrainmap_create | ( | lua_State * | L | ) |
Create a map.
Definition at line 196 of file lua_terrainmap.cpp.
References h, t_translation::read_terrain_code(), terrainmapKey, and w.
Referenced by mapgen_lua_kernel::mapgen_lua_kernel().
int intf_terrainmap_get | ( | lua_State * | L | ) |
Definition at line 211 of file lua_terrainmap.cpp.
References resources::gameboard, and terrainmapKey.
int intf_terrainmap_iter | ( | lua_State * | L | ) |
Definition at line 389 of file lua_terrainmap.cpp.
References luaW_checkterrainmap(), luaW_pushlocation(), and luaW_toboolean().
Referenced by game_lua_kernel::game_lua_kernel().
void lua_terrainmap_setmetatable | ( | lua_State * | L | ) |
gamemap_base& luaW_checkterrainmap | ( | lua_State * | L, |
int | index | ||
) |
Definition at line 179 of file lua_terrainmap.cpp.
References utf8::index(), luaW_isterrainmap(), and luaW_type_error().
Referenced by impl_slocs_get(), impl_slocs_next(), impl_slocs_set(), impl_terrainmap_get(), impl_terrainmap_iter(), impl_terrainmap_set(), intf_mg_get_locations(), intf_mg_get_tiles_radius(), intf_on_board(), intf_on_border(), intf_terrain_mask(), and intf_terrainmap_iter().
bool luaW_isterrainmap | ( | lua_State * | L, |
int | index | ||
) |
Definition at line 165 of file lua_terrainmap.cpp.
References utf8::index(), maplocationKey, and terrainmapKey.
Referenced by luaW_checkterrainmap(), and luaW_toterrainmap().
gamemap_base* luaW_toterrainmap | ( | lua_State * | L, |
int | index | ||
) |
Definition at line 171 of file lua_terrainmap.cpp.
References utf8::index(), and luaW_isterrainmap().