Freeciv-3.3
Loading...
Searching...
No Matches
Functions
api_server_base.h File Reference
#include "luascript_types.h"

Go to the source code of this file.

Functions

int api_server_player_civilization_score (lua_State *L, Player *pplayer)
 
bool api_server_was_started (lua_State *L)
 
bool api_server_save (lua_State *L, const char *filename)
 
const charapi_server_setting_get (lua_State *L, const char *sett_name)
 
bool api_play_music (lua_State *L, Player *pplayer, const char *tag)
 
bool api_popup_image (lua_State *L, Player *pplayer, const char *tag)
 

Function Documentation

◆ api_play_music()

bool api_play_music ( lua_State L,
Player pplayer,
const char tag 
)

Play music track for player

Definition at line 75 of file api_server_base.c.

Referenced by tolua_server_server_play_music00().

◆ api_popup_image()

bool api_popup_image ( lua_State L,
Player pplayer,
const char tag 
)

Popup image to player

Definition at line 93 of file api_server_base.c.

Referenced by tolua_server_server_popup_image00().

◆ api_server_player_civilization_score()

int api_server_player_civilization_score ( lua_State L,
Player pplayer 
)

Return the civilization score (total) for player

Definition at line 37 of file api_server_base.c.

Referenced by tolua_server_server_civilization_score00().

◆ api_server_save()

bool api_server_save ( lua_State L,
const char filename 
)

Save the game (a manual save is triggered).

Definition at line 58 of file api_server_base.c.

Referenced by tolua_server_server_save00().

◆ api_server_setting_get()

const char * api_server_setting_get ( lua_State L,
const char sett_name 
)

Return the formatted value of the setting or NULL if no such setting exists.

Definition at line 112 of file api_server_base.c.

Referenced by tolua_server_server_setting_get00().

◆ api_server_was_started()

bool api_server_was_started ( lua_State L)

Returns TRUE if the game was started.

Definition at line 48 of file api_server_base.c.

Referenced by tolua_server_server_started00().