Freeciv-3.3: /fast/freeciv/nightly/main/server/scripting/api_server_base.h Source File

Freeciv-3.3

Loading...
Searching...
No Matches
api_server_base.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_SERVER_BASE_H
15#define FC__API_SERVER_BASE_H
16
17/* common/scriptcore */
18#include "luascript_types.h"
19
20struct lua_State;
21
22/* Additional methods on the server. */
23int api_server_player_civilization_score(lua_State *L, Player *pplayer);
24
25bool api_server_was_started(lua_State *L);
26
27bool api_server_save(lua_State *L, const char *filename);
28
29const char *api_server_setting_get(lua_State *L, const char *sett_name);
30
31bool api_play_music(lua_State *L, Player *pplayer, const char *tag);
32
33#endif /* FC__API_SERVER_BASE_H */
api_server_setting_get
const char * api_server_setting_get(lua_State *L, const char *sett_name)
Definition api_server_base.c:94
api_server_was_started
bool api_server_was_started(lua_State *L)
Definition api_server_base.c:48
api_server_player_civilization_score
int api_server_player_civilization_score(lua_State *L, Player *pplayer)
Definition api_server_base.c:37
api_play_music
bool api_play_music(lua_State *L, Player *pplayer, const char *tag)
Definition api_server_base.c:75
api_server_save
bool api_server_save(lua_State *L, const char *filename)
Definition api_server_base.c:58
incite_cost
char * incite_cost
Definition comments.c:74
luascript_types.h
player
Definition player.h:249