Freeciv21
Develop your civilization from humble roots to a global empire
api_game_effects.cpp File Reference
#include "fcintl.h"
#include "effects.h"
#include "luascript.h"
#include "api_game_effects.h"
+ Include dependency graph for api_game_effects.cpp:

Go to the source code of this file.

Functions

int api_effects_world_bonus (lua_State *L, const char *effect_type)
 Returns the effect bonus in the world. More...
 
int api_effects_player_bonus (lua_State *L, Player *pplayer, const char *effect_type)
 Returns the effect bonus for a player. More...
 
int api_effects_city_bonus (lua_State *L, City *pcity, const char *effect_type)
 Returns the effect bonus at a city. More...
 

Function Documentation

◆ api_effects_city_bonus()

int api_effects_city_bonus ( lua_State *  L,
City pcity,
const char *  effect_type 
)

Returns the effect bonus at a city.

Definition at line 61 of file api_game_effects.cpp.

◆ api_effects_player_bonus()

int api_effects_player_bonus ( lua_State *  L,
Player pplayer,
const char *  effect_type 
)

Returns the effect bonus for a player.

Definition at line 42 of file api_game_effects.cpp.

◆ api_effects_world_bonus()

int api_effects_world_bonus ( lua_State *  L,
const char *  effect_type 
)

Returns the effect bonus in the world.

Definition at line 25 of file api_game_effects.cpp.