Freeciv-3.2: /fast/freeciv/nightly/S3_2/server/scripting/api_server_game_methods.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
api_server_game_methods.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996-2015 - Freeciv Development Team
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_SERVER_GAME_METHODS_H
15#define FC__API_SERVER_GAME_METHODS_H
16
17/* common/scriptcore */
18#include "luascript_types.h"
19
20/* server/scripting */
21#include "api_server_edit.h"
22
23/* Server-only methods added to the modules defined in
24 * the common tolua_game.pkg. */
25
26int api_methods_player_trait(lua_State *L, Player *pplayer,
27 const char *tname);
28int api_methods_player_trait_base(lua_State *L, Player *pplayer,
29 const char *tname);
30int api_methods_player_trait_current_mod(lua_State *L, Player *pplayer,
31 const char *tname);
32void api_methods_player_lose(lua_State *L, Player *pplayer, Player *looter);
33
34int api_methods_nation_trait_min(lua_State *L, Nation_Type *pnation,
35 const char *tname);
36int api_methods_nation_trait_max(lua_State *L, Nation_Type *pnation,
37 const char *tname);
38int api_methods_nation_trait_default(lua_State *L, Nation_Type *pnation,
39 const char *tname);
40int api_methods_player_tech_bulbs(lua_State *L, Player *pplayer,
41 Tech_Type *tech);
42int api_methods_player_free_bulbs(lua_State *L, Player *pplayer);
43
44#endif /* FC__API_SERVER_GAME_METHODS_H */
api_server_edit.h
api_methods_player_lose
void api_methods_player_lose(lua_State *L, Player *pplayer, Player *looter)
Definition api_server_game_methods.c:99
api_methods_nation_trait_min
int api_methods_nation_trait_min(lua_State *L, Nation_Type *pnation, const char *tname)
Definition api_server_game_methods.c:115
api_methods_player_tech_bulbs
int api_methods_player_tech_bulbs(lua_State *L, Player *pplayer, Tech_Type *tech)
Definition api_server_game_methods.c:175
api_methods_player_trait_base
int api_methods_player_trait_base(lua_State *L, Player *pplayer, const char *tname)
Definition api_server_game_methods.c:57
api_methods_player_free_bulbs
int api_methods_player_free_bulbs(lua_State *L, Player *pplayer)
Definition api_server_game_methods.c:214
api_methods_player_trait
int api_methods_player_trait(lua_State *L, Player *pplayer, const char *tname)
Definition api_server_game_methods.c:38
api_methods_nation_trait_default
int api_methods_nation_trait_default(lua_State *L, Nation_Type *pnation, const char *tname)
Definition api_server_game_methods.c:153
api_methods_player_trait_current_mod
int api_methods_player_trait_current_mod(lua_State *L, Player *pplayer, const char *tname)
Definition api_server_game_methods.c:77
api_methods_nation_trait_max
int api_methods_nation_trait_max(lua_State *L, Nation_Type *pnation, const char *tname)
Definition api_server_game_methods.c:134
incite_cost
char * incite_cost
Definition comments.c:74
luascript_types.h
advance
Definition tech.h:124
nation_type
Definition nation.h:98
player
Definition player.h:247