Feature #2031 » 2031_S3_3.patch
| common/scriptcore/api_game_methods.c | ||
|---|---|---|
|
return index_to_map_pos_y(tile_index(ptile));
|
||
|
}
|
||
|
/**********************************************************************//**
|
||
|
Return the latitude of the tile.
|
||
|
**************************************************************************/
|
||
|
int api_methods_tile_latitude(lua_State *L, Tile *ptile)
|
||
|
{
|
||
|
LUASCRIPT_CHECK_STATE(L, -1);
|
||
|
LUASCRIPT_CHECK_SELF(L, ptile, -1);
|
||
|
return map_signed_latitude(ptile);
|
||
|
}
|
||
|
/**********************************************************************//**
|
||
|
Return City on ptile, else NULL
|
||
|
**************************************************************************/
|
||
| common/scriptcore/api_game_methods.h | ||
|---|---|---|
|
int api_methods_tile_nat_y(lua_State *L, Tile *ptile);
|
||
|
int api_methods_tile_map_x(lua_State *L, Tile *ptile);
|
||
|
int api_methods_tile_map_y(lua_State *L, Tile *ptile);
|
||
|
int api_methods_tile_latitude(lua_State *L, Tile *ptile);
|
||
|
City *api_methods_tile_city(lua_State *L, Tile *ptile);
|
||
|
bool api_methods_tile_city_exists_within_max_city_map(lua_State *L,
|
||
|
Tile *ptile,
|
||
| common/scriptcore/tolua_game.pkg | ||
|---|---|---|
|
@ y (lua_State *L, Tile *self);
|
||
|
}
|
||
|
int api_methods_tile_latitude
|
||
|
@ latitude (lua_State *L, Tile *self);
|
||
|
City *api_methods_tile_city
|
||
|
@ city (lua_State *L, Tile *self);
|
||
|
bool api_methods_tile_city_exists_within_max_city_map
|
||