26 int count,
int sq_radius);
29 City *homecity,
int moves_left);
32 City *homecity,
int moves_left,
int hp_left,
Unit * api_edit_create_unit_full(lua_State *L, Player *pplayer, Tile *ptile, Unit_Type *ptype, int veteran_level, City *homecity, int moves_left, int hp_left, Unit *ptransport)
Create a new unit.
void api_edit_climate_change(lua_State *L, enum climate_change_type type, int effect)
Global climate change.
Player * api_edit_create_player(lua_State *L, const char *username, Nation_Type *pnation, const char *ai)
Create a new player.
void api_edit_resize_city(lua_State *L, City *pcity, int size, const char *reason)
Resizes a city.
void api_edit_unit_moving_allow(lua_State *L, Unit *punit)
Allow unit to move.
bool api_edit_trait_mod_set(lua_State *L, Player *pplayer, const char *tname, const int mod)
Modify player's trait value.
bool api_edit_unleash_barbarians(lua_State *L, Tile *ptile)
Unleash barbarians on a tile, for example from a hut.
Player * api_edit_civil_war(lua_State *L, Player *pplayer, int probability)
Provoke a civil war.
void api_edit_player_victory(lua_State *L, Player *pplayer)
Make player winner of the scenario.
void api_edit_create_extra(lua_State *L, Tile *ptile, const char *name)
Create a new extra.
@ CLIMATE_CHANGE_GLOBAL_WARMING
@ CLIMATE_CHANGE_NUCLEAR_WINTER
void api_edit_player_add_history(lua_State *L, Player *pplayer, int amount)
Add history to a player.
bool api_edit_unit_teleport(lua_State *L, Unit *punit, Tile *dest)
Teleport unit to destination tile.
bool api_edit_change_terrain(lua_State *L, Tile *ptile, Terrain *pterr)
Change terrain on tile.
Unit * api_edit_create_unit(lua_State *L, Player *pplayer, Tile *ptile, Unit_Type *ptype, int veteran_level, City *homecity, int moves_left)
Create a new unit.
void api_edit_unit_kill(lua_State *L, Unit *punit, const char *reason, Player *killer)
Kill the unit.
void api_edit_unit_turn(lua_State *L, Unit *punit, Direction dir)
Change unit orientation.
void api_edit_place_partisans(lua_State *L, Tile *ptile, Player *pplayer, int count, int sq_radius)
Place partisans for a player around a tile (normally around a city).
void api_edit_remove_extra(lua_State *L, Tile *ptile, const char *name)
Remove extra from tile, if present.
void api_edit_create_base(lua_State *L, Tile *ptile, const char *name, struct player *pplayer)
Create a new base.
void api_edit_tile_set_label(lua_State *L, Tile *ptile, const char *label)
Set tile label text.
void api_edit_create_road(lua_State *L, Tile *ptile, const char *name)
Add a new road.
Tech_Type * api_edit_give_technology(lua_State *L, Player *pplayer, Tech_Type *ptech, int cost, bool notify, const char *reason)
Give pplayer technology ptech.
void api_edit_city_add_history(lua_State *L, City *pcity, int amount)
Add history to a city.
bool api_edit_unit_move(lua_State *L, Unit *punit, Tile *ptile, int movecost)
Move a unit.
void api_edit_unit_moving_disallow(lua_State *L, Unit *punit)
Prohibit unit from moving.
void api_edit_create_owned_extra(lua_State *L, Tile *ptile, const char *name, struct player *pplayer)
Create a new owned extra.
void api_edit_create_city(lua_State *L, Player *pplayer, Tile *ptile, const char *name)
Create a new city.
void api_edit_change_gold(lua_State *L, Player *pplayer, int amount)
Change pplayer's gold by amount.
enum direction8 Direction