Freeciv-3.1
|
Go to the source code of this file.
Functions | |
int | api_effects_world_bonus (lua_State *L, const char *effect_type) |
int | api_effects_player_bonus (lua_State *L, Player *pplayer, const char *effect_type) |
int | api_effects_city_bonus (lua_State *L, City *pcity, const char *effect_type) |
int | api_effects_unit_bonus (lua_State *L, Unit *punit, Player *other_player, const char *effect_type) |
int | api_effects_unit_vs_tile_bonus (lua_State *L, Unit *punit, Tile *ptile, const char *effect_type) |
int api_effects_city_bonus | ( | lua_State * | L, |
City * | pcity, | ||
const char * | effect_type | ||
) |
Returns the effect bonus at a city.
Definition at line 65 of file api_game_effects.c.
Referenced by tolua_game_effects_city_bonus00().
int api_effects_player_bonus | ( | lua_State * | L, |
Player * | pplayer, | ||
const char * | effect_type | ||
) |
Returns the effect bonus for a player
Definition at line 46 of file api_game_effects.c.
Referenced by tolua_game_effects_player_bonus00().
int api_effects_unit_bonus | ( | lua_State * | L, |
Unit * | punit, | ||
Player * | other_player, | ||
const char * | effect_type | ||
) |
Returns the effect bonus at a unit. Can take other_player to support local DiplRel requirements.
Definition at line 85 of file api_game_effects.c.
Referenced by tolua_game_effects_unit_bonus00().
int api_effects_unit_vs_tile_bonus | ( | lua_State * | L, |
Unit * | punit, | ||
Tile * | ptile, | ||
const char * | effect_type | ||
) |
Returns the effect bonus at a tile and the specified unit. Unlike effects.unit_bonus() the city the effect is evaluated against is the city at ptile tile rather than the city at the unit's tile.
Definition at line 117 of file api_game_effects.c.
Referenced by tolua_game_effects_unit_vs_tile_bonus00().
int api_effects_world_bonus | ( | lua_State * | L, |
const char * | effect_type | ||
) |
Returns the effect bonus in the world
Definition at line 29 of file api_game_effects.c.
Referenced by tolua_game_effects_world_bonus00().