Freeciv-3.3
Loading...
Searching...
No Matches
Functions
aiiface.h File Reference
#include "ai.h"

Go to the source code of this file.

Functions

void ai_init (void)
 
bool load_ai_module (const char *modname)
 
const chardefault_ai_type_name (void)
 
void call_incident (enum incident_type type, enum casus_belli_range scope, const struct action *paction, struct player *violator, struct player *victim)
 
void call_ai_refresh (void)
 
bool set_default_ai_type_name (const char *name)
 

Function Documentation

◆ ai_init()

void ai_init ( void  )

Initialize ai stuff

Definition at line 131 of file aiiface.c.

Referenced by srv_init().

◆ call_ai_refresh()

void call_ai_refresh ( void  )

Call ai refresh() callback for all players.

Definition at line 254 of file aiiface.c.

Referenced by server_sniff_all_input().

◆ 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.c.

Referenced by action_consequence_common(), and handle_diplomacy_cancel_pact().

◆ default_ai_type_name()

const char * default_ai_type_name ( void  )

◆ load_ai_module()

bool load_ai_module ( const char modname)

Referenced by ai_init(), and main().

◆ set_default_ai_type_name()

bool set_default_ai_type_name ( const char name)

Set default ai type. Keeps the existing type if the new one cannot be found.

Definition at line 273 of file aiiface.c.

Referenced by ai_init(), and aitype_action().