![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <fc_config.h>#include "support.h"#include "ai.h"#include "player.h"#include "autosettlers.h"#include "classicai.h"#include "aiiface.h"
Include dependency graph for aiiface.cpp:Go to the source code of this file.
Functions | |
| void | ai_init () |
| Initialize ai stuff. More... | |
| void | call_incident (enum incident_type type, enum casus_belli_range scope, const struct action *paction, struct player *violator, struct player *victim) |
| Call incident function of victim. More... | |
| void | call_ai_refresh () |
| Call ai refresh() callback for all players. More... | |
| const char * | default_ai_type_name () |
| Return name of default ai type. More... | |
Variables | |
| static struct ai_type * | default_ai = nullptr |
| void ai_init | ( | ) |
| void call_ai_refresh | ( | ) |
Call ai refresh() callback for all players.
Definition at line 256 of file aiiface.cpp.
Referenced by freeciv::server::pulse().
| void call_incident | ( | enum incident_type | type, |
| enum casus_belli_range | scope, | ||
| const struct action * | paction, | ||
| struct player * | violator, | ||
| struct player * | victim | ||
| ) |
Call incident function of victim.
Definition at line 235 of file aiiface.cpp.
Referenced by action_consequence_common(), and handle_diplomacy_cancel_pact_explicit().
| const char* default_ai_type_name | ( | ) |
Return name of default ai type.
Definition at line 265 of file aiiface.cpp.
Referenced by aifill(), api_edit_create_player(), compat_load_020400(), connection_attach_real(), create_animals(), create_barbarian_player(), create_command(), and handle_edit_player_create().
|
static |
Definition at line 47 of file aiiface.cpp.
Referenced by ai_init(), and default_ai_type_name().