![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Include dependency graph for script_fcdb.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| bool | script_fcdb_init (const QString &fcdb_luafile) |
| Initialize the scripting state. More... | |
| void | script_fcdb_free () |
| Free the scripting data. More... | |
| bool | script_fcdb_do_string (struct connection *caller, const char *str) |
| Parse and execute the script in str in the lua instance for the freeciv database. More... | |
| bool | script_fcdb_user_delegate_to (connection *pconn, player *pplayer, const char *delegate, bool &success) |
| returns Bool, whether pconn is allowed to delegate player to delegate. More... | |
| bool | script_fcdb_user_exists (connection *pconn, bool &exists) |
| Check if the user exists. More... | |
| bool | script_fcdb_user_save (connection *pconn, const char *password) |
| Save a new user. More... | |
| bool | script_fcdb_user_take (connection *requester, connection *taker, player *player, bool will_observe, bool &success) |
| returns Bool, whether requester is allowed to attach taker to pplayer. More... | |
| bool | script_fcdb_user_verify (connection *pconn, const char *username, bool &success) |
| Check the credentials of the user. More... | |
| bool script_fcdb_do_string | ( | struct connection * | caller, |
| const char * | str | ||
| ) |
Parse and execute the script in str in the lua instance for the freeciv database.
Definition at line 258 of file script_fcdb.cpp.
Referenced by fcdb_command().
| void script_fcdb_free | ( | ) |
Free the scripting data.
Definition at line 241 of file script_fcdb.cpp.
Referenced by fcdb_command(), fcdb_free(), and script_fcdb_init().
| bool script_fcdb_init | ( | const QString & | fcdb_luafile | ) |
Initialize the scripting state.
Returns the status of the freeciv database lua state.
Definition at line 178 of file script_fcdb.cpp.
Referenced by fcdb_command(), and fcdb_init().
| bool script_fcdb_user_delegate_to | ( | connection * | pconn, |
| player * | pplayer, | ||
| const char * | delegate, | ||
| bool & | success | ||
| ) |
returns Bool, whether pconn is allowed to delegate player to delegate.
Definition at line 309 of file script_fcdb.cpp.
Referenced by delegate_command().
| bool script_fcdb_user_exists | ( | connection * | pconn, |
| bool & | exists | ||
| ) |
Check if the user exists.
Definition at line 327 of file script_fcdb.cpp.
Referenced by auth_user().
| bool script_fcdb_user_save | ( | connection * | pconn, |
| const char * | password | ||
| ) |
| bool script_fcdb_user_take | ( | connection * | requester, |
| connection * | taker, | ||
| player * | player, | ||
| bool | will_observe, | ||
| bool & | success | ||
| ) |
returns Bool, whether requester is allowed to attach taker to pplayer.
Definition at line 358 of file script_fcdb.cpp.
Referenced by is_allowed_to_take().
| bool script_fcdb_user_verify | ( | connection * | pconn, |
| const char * | username, | ||
| bool & | success | ||
| ) |
Check the credentials of the user.
Definition at line 375 of file script_fcdb.cpp.
Referenced by auth_handle_reply().