Freeciv21
Develop your civilization from humble roots to a global empire
api_game_effects.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  part of Freeciv21. Freeciv21 is free software: you can redistribute it
4  and/or modify it under the terms of the GNU General Public License as
5  published by the Free Software Foundation, either version 3 of the
6  License, or (at your option) any later version. You should have received
7  a copy of the GNU General Public License along with Freeciv21. If not,
8  see https://www.gnu.org/licenses/.
9 **************************************************************************/
10 #pragma once
11 
12 /* common/scriptcore */
13 #include "luascript_types.h"
14 
15 struct lua_State;
16 
17 int api_effects_world_bonus(lua_State *L, const char *effect_type);
18 int api_effects_player_bonus(lua_State *L, Player *pplayer,
19  const char *effect_type);
20 int api_effects_city_bonus(lua_State *L, City *pcity,
21  const char *effect_type);
int api_effects_player_bonus(lua_State *L, Player *pplayer, const char *effect_type)
Returns the effect bonus for a player.
int api_effects_city_bonus(lua_State *L, City *pcity, const char *effect_type)
Returns the effect bonus at a city.
int api_effects_world_bonus(lua_State *L, const char *effect_type)
Returns the effect bonus in the world.
Definition: city.h:291
Definition: player.h:231