Freeciv-3.2: /fast/freeciv/nightly/S3_2/common/scriptcore/api_game_effects.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
api_game_effects.h
Go to the documentation of this file.
1/*****************************************************************************
2 Freeciv - Copyright (C) 2005 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12*****************************************************************************/
13
14#ifndef FC__API_GAME_EFFECTS_H
15#define FC__API_GAME_EFFECTS_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20
21/* common/scriptcore */
22#include "luascript_types.h"
23
24struct lua_State;
25
26int api_effects_world_bonus(lua_State *L, const char *effect_type);
27int api_effects_player_bonus(lua_State *L, Player *pplayer,
28 const char *effect_type);
29int api_effects_city_bonus(lua_State *L, City *pcity,
30 const char *effect_type);
31int api_effects_unit_bonus(lua_State *L, Unit *punit, Player *other_player,
32 const char *effect_type);
33int api_effects_tile_bonus(lua_State *L, Tile *ptile, City *pcity,
34 const char *output_id, const char *effect_type);
35int api_effects_unit_vs_tile_bonus(lua_State *L, Unit *punit, Tile *ptile,
36 const char *effect_type);
37
38#ifdef __cplusplus
39}
40#endif /* __cplusplus */
41
42#endif /* API_GAME_EFFECTS */
api_effects_tile_bonus
int api_effects_tile_bonus(lua_State *L, Tile *ptile, City *pcity, const char *output_id, const char *effect_type)
Definition api_game_effects.c:124
api_effects_unit_vs_tile_bonus
int api_effects_unit_vs_tile_bonus(lua_State *L, Unit *punit, Tile *ptile, const char *effect_type)
Definition api_game_effects.c:168
api_effects_player_bonus
int api_effects_player_bonus(lua_State *L, Player *pplayer, const char *effect_type)
Definition api_game_effects.c:46
api_effects_city_bonus
int api_effects_city_bonus(lua_State *L, City *pcity, const char *effect_type)
Definition api_game_effects.c:65
api_effects_unit_bonus
int api_effects_unit_bonus(lua_State *L, Unit *punit, Player *other_player, const char *effect_type)
Definition api_game_effects.c:85
api_effects_world_bonus
int api_effects_world_bonus(lua_State *L, const char *effect_type)
Definition api_game_effects.c:29
incite_cost
char * incite_cost
Definition comments.c:74
punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:74
luascript_types.h
city
Definition city.h:320
player
Definition player.h:247
tile
Definition tile.h:50
unit
Definition unit.h:138