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 26 int api_methods_player_trait(lua_State *L, Player *pplayer, 27 const char *tname); 28 int api_methods_player_trait_base(lua_State *L, Player *pplayer, 29 const char *tname); 30 int api_methods_player_trait_current_mod(lua_State *L, Player *pplayer, 31 const char *tname); 32 33 int api_methods_nation_trait_min(lua_State *L, Nation_Type *pnation, 34 const char *tname); 35 int api_methods_nation_trait_max(lua_State *L, Nation_Type *pnation, 36 const char *tname); 37 int api_methods_nation_trait_default(lua_State *L, Nation_Type *pnation, 38 const char *tname); 39 40 #endif /* FC__API_SERVER_GAME_METHODS_H */ 41