Freeciv21
Develop your civilization from humble roots to a global empire
api_server_game_methods.h File Reference
#include "luascript_types.h"
#include "api_server_edit.h"
+ Include dependency graph for api_server_game_methods.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int api_methods_player_trait (lua_State *L, Player *pplayer, const char *tname)
 Return the current value of an AI trait in force (base+mod) More...
 
int api_methods_player_trait_base (lua_State *L, Player *pplayer, const char *tname)
 Return the current base value of an AI trait (not including Lua mod) More...
 
int api_methods_player_trait_current_mod (lua_State *L, Player *pplayer, const char *tname)
 Return the current Lua increment to an AI trait (can be changed with api_edit_trait_mod_set()) More...
 
int api_methods_nation_trait_min (lua_State *L, Nation_Type *pnation, const char *tname)
 Return the minimum random trait value that will be allocated for a nation. More...
 
int api_methods_nation_trait_max (lua_State *L, Nation_Type *pnation, const char *tname)
 Return the maximum random trait value that will be allocated for a nation. More...
 
int api_methods_nation_trait_default (lua_State *L, Nation_Type *pnation, const char *tname)
 Return the default trait value that will be allocated for a nation. More...
 

Function Documentation

◆ api_methods_nation_trait_default()

int api_methods_nation_trait_default ( lua_State *  L,
Nation_Type pnation,
const char *  tname 
)

Return the default trait value that will be allocated for a nation.

Definition at line 125 of file api_server_game_methods.cpp.

◆ api_methods_nation_trait_max()

int api_methods_nation_trait_max ( lua_State *  L,
Nation_Type pnation,
const char *  tname 
)

Return the maximum random trait value that will be allocated for a nation.

Definition at line 106 of file api_server_game_methods.cpp.

◆ api_methods_nation_trait_min()

int api_methods_nation_trait_min ( lua_State *  L,
Nation_Type pnation,
const char *  tname 
)

Return the minimum random trait value that will be allocated for a nation.

Definition at line 87 of file api_server_game_methods.cpp.

◆ api_methods_player_trait()

int api_methods_player_trait ( lua_State *  L,
Player pplayer,
const char *  tname 
)

Return the current value of an AI trait in force (base+mod)

Definition at line 29 of file api_server_game_methods.cpp.

◆ api_methods_player_trait_base()

int api_methods_player_trait_base ( lua_State *  L,
Player pplayer,
const char *  tname 
)

Return the current base value of an AI trait (not including Lua mod)

Definition at line 48 of file api_server_game_methods.cpp.

◆ api_methods_player_trait_current_mod()

int api_methods_player_trait_current_mod ( lua_State *  L,
Player pplayer,
const char *  tname 
)

Return the current Lua increment to an AI trait (can be changed with api_edit_trait_mod_set())

Definition at line 68 of file api_server_game_methods.cpp.