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

Go to the source code of this file.

Functions

void ai_init ()
 Initialize ai stuff. More...
 
bool load_ai_module (const char *modname)
 
const char * default_ai_type_name ()
 Return name of default ai type. 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...
 

Function Documentation

◆ ai_init()

void ai_init ( )

Initialize ai stuff.

Definition at line 132 of file aiiface.cpp.

Referenced by srv_init().

◆ call_ai_refresh()

void call_ai_refresh ( )

Call ai refresh() callback for all players.

Definition at line 256 of file aiiface.cpp.

Referenced by freeciv::server::pulse().

◆ call_incident()

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().

◆ default_ai_type_name()

const char* default_ai_type_name ( )

◆ load_ai_module()

bool load_ai_module ( const char *  modname)

Referenced by ai_init(), and main().