Freeciv-3.1
|
#include "ai.h"
#include "city.h"
#include "game.h"
#include "unit.h"
#include "citytools.h"
#include "aidata.h"
#include "daimilitary.h"
#include "aiplayer.h"
Go to the source code of this file.
Functions | |
void | dai_player_alloc (struct ai_type *ait, struct player *pplayer) |
void | dai_player_free (struct ai_type *ait, struct player *pplayer) |
void | dai_player_save (struct ai_type *ait, const char *aitstr, struct player *pplayer, struct section_file *file, int plrno) |
void | dai_player_save_relations (struct ai_type *ait, const char *aitstr, struct player *pplayer, struct player *other, struct section_file *file, int plrno) |
void | dai_player_load (struct ai_type *ait, const char *aitstr, struct player *pplayer, const struct section_file *file, int plrno) |
void | dai_player_load_relations (struct ai_type *ait, const char *aitstr, struct player *pplayer, struct player *other, const struct section_file *file, int plrno) |
void | dai_player_copy (struct ai_type *ait, struct player *original, struct player *created) |
void | dai_gained_control (struct ai_type *ait, struct player *pplayer) |
Ai got control of the player.
Definition at line 173 of file aiplayer.c.
Referenced by cai_gained_control(), texwai_control_gained(), and twai_control_gained().
Initialize player for use with default AI. Note that this is called for all players, not just for those default AI is controlling.
Definition at line 37 of file aiplayer.c.
Referenced by cai_player_alloc().
Copy default ai data from player to player
Definition at line 150 of file aiplayer.c.
Referenced by cai_created_by_civil_war(), texwai_created_by_civil_war(), and twai_created_by_civil_war().
Free player from use with default AI.
Definition at line 49 of file aiplayer.c.
Referenced by cai_player_free().
void dai_player_load | ( | struct ai_type * | ait, |
const char * | aitstr, | ||
struct player * | pplayer, | ||
const struct section_file * | file, | ||
int | plrno | ||
) |
Load player specific data from savegame
Definition at line 107 of file aiplayer.c.
Referenced by texwai_player_load(), and twai_player_load().
void dai_player_load_relations | ( | struct ai_type * | ait, |
const char * | aitstr, | ||
struct player * | pplayer, | ||
struct player * | other, | ||
const struct section_file * | file, | ||
int | plrno | ||
) |
Load player vs player specific data from savegame
Definition at line 119 of file aiplayer.c.
Referenced by cai_player_load_relations(), and dai_player_load().
void dai_player_save | ( | struct ai_type * | ait, |
const char * | aitstr, | ||
struct player * | pplayer, | ||
struct section_file * | file, | ||
int | plrno | ||
) |
Store player specific data to savegame
Definition at line 64 of file aiplayer.c.
Referenced by texwai_player_save(), and twai_player_save().
void dai_player_save_relations | ( | struct ai_type * | ait, |
const char * | aitstr, | ||
struct player * | pplayer, | ||
struct player * | other, | ||
struct section_file * | file, | ||
int | plrno | ||
) |
Store player specific data to savegame
Definition at line 76 of file aiplayer.c.
Referenced by cai_player_save_relations(), and dai_player_save().