![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "luascript.h"#include "score.h"#include "settings.h"#include "srv_main.h"#include "savemain.h"#include "script_server.h"#include "api_server_base.h"
Include dependency graph for api_server_base.cpp:Go to the source code of this file.
Functions | |
| int | api_server_player_civilization_score (lua_State *L, Player *pplayer) |
| Return the civilization score (total) for player. More... | |
| bool | api_server_was_started (lua_State *L) |
| Returns TRUE if the game was started. More... | |
| bool | api_server_save (lua_State *L, const char *filename) |
| Save the game (a manual save is triggered). More... | |
| bool | api_play_music (lua_State *L, Player *pplayer, const char *tag) |
| Play music track for player. More... | |
| const char * | api_server_setting_get (lua_State *L, const char *sett_name) |
| Return the formated value of the setting or nullptr if no such setting exists,. More... | |
| bool api_play_music | ( | lua_State * | L, |
| Player * | pplayer, | ||
| const char * | tag | ||
| ) |
Play music track for player.
Definition at line 68 of file api_server_base.cpp.
| int api_server_player_civilization_score | ( | lua_State * | L, |
| Player * | pplayer | ||
| ) |
Return the civilization score (total) for player.
Definition at line 30 of file api_server_base.cpp.
| bool api_server_save | ( | lua_State * | L, |
| const char * | filename | ||
| ) |
Save the game (a manual save is triggered).
Definition at line 51 of file api_server_base.cpp.
| const char* api_server_setting_get | ( | lua_State * | L, |
| const char * | sett_name | ||
| ) |
Return the formated value of the setting or nullptr if no such setting exists,.
Definition at line 87 of file api_server_base.cpp.
| bool api_server_was_started | ( | lua_State * | L | ) |
Returns TRUE if the game was started.
Definition at line 41 of file api_server_base.cpp.