Freeciv-3.1
|
#include "fc_types.h"
Go to the source code of this file.
Data Structures | |
struct | ai_type |
Macros | |
#define | FC_AI_MOD_CAPSTR "+Freeciv-3.1-ai-module" |
#define | ai_timer_init(...) (void) 0 |
#define | ai_timer_free(...) (void) 0 |
#define | ai_timer_start(...) (void) 0 |
#define | ai_timer_stop(...) (void) 0 |
#define | ai_timer_player_start(...) (void) 0 |
#define | ai_timer_player_stop(...) (void) 0 |
#define | ai_type_iterate(NAME_ai) |
#define | ai_type_iterate_end |
#define | CALL_PLR_AI_FUNC(_func, _player, ...) |
#define | CALL_FUNC_EACH_AI(_func, ...) |
Enumerations | |
enum | incident_type { INCIDENT_ACTION = 0 , INCIDENT_WAR , INCIDENT_LAST } |
Functions | |
struct ai_type * | ai_type_alloc (void) |
void | ai_type_dealloc (void) |
struct ai_type * | get_ai_type (int id) |
int | ai_type_number (const struct ai_type *ai) |
void | init_ai (struct ai_type *ai) |
int | ai_type_get_count (void) |
const char * | ai_name (const struct ai_type *ai) |
struct ai_type * | ai_type_by_name (const char *search) |
const char * | ai_type_name_or_fallback (const char *orig_name) |
#define ai_type_iterate | ( | NAME_ai | ) |
#define ai_type_iterate_end |
#define CALL_FUNC_EACH_AI | ( | _func, | |
... | |||
) |
#define CALL_PLR_AI_FUNC | ( | _func, | |
_player, | |||
... | |||
) |
enum incident_type |
const char * ai_name | ( | const struct ai_type * | ai | ) |
Return the name of the ai type.
Definition at line 329 of file ai.c.
Referenced by ai_type_by_name(), ai_type_name_or_fallback(), aicmd_command(), aifill(), create_command_pregame(), sg_load_players(), sg_load_players(), sg_save_player_main(), show_players(), and split_player().
struct ai_type * ai_type_alloc | ( | void | ) |
struct ai_type * ai_type_by_name | ( | const char * | search | ) |
Find ai type with given name.
Definition at line 284 of file ai.c.
Referenced by ai_init(), ai_type_name_or_fallback(), create_command_pregame(), and server_create_player().
void ai_type_dealloc | ( | void | ) |
int ai_type_get_count | ( | void | ) |
const char * ai_type_name_or_fallback | ( | const char * | orig_name | ) |
Return usable ai type name, if possible. This is either the name given as parameter or some fallback name for it. NULL is returned if no name matches.
Definition at line 340 of file ai.c.
Referenced by server_create_player().
int ai_type_number | ( | const struct ai_type * | ai | ) |
Returns id of the given ai_type.
Definition at line 272 of file ai.c.
Referenced by city_ai_data(), city_set_ai_data(), player_ai_data(), player_set_ai_data(), unit_ai_data(), unit_set_ai_data(), utype_ai_data(), and utype_set_ai_data().
struct ai_type * get_ai_type | ( | int | id | ) |
Returns ai_type of given id.
Definition at line 254 of file ai.c.
Referenced by ai_type_alloc(), and client_main().
void init_ai | ( | struct ai_type * | ai | ) |
Initializes AI structure.
Definition at line 264 of file ai.c.
Referenced by ai_init(), and client_main().