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

Go to the source code of this file.

Functions

int ai_trait_get_value (enum trait tr, struct player *pplayer)
 Get current value of player trait. More...
 
void ai_traits_init (struct player *pplayer)
 Initialize ai traits for player. More...
 
void ai_traits_close (struct player *pplayer)
 Free resources associated with player ai traits. More...
 

Function Documentation

◆ ai_trait_get_value()

int ai_trait_get_value ( enum trait  tr,
struct player pplayer 
)

◆ ai_traits_close()

void ai_traits_close ( struct player pplayer)

Free resources associated with player ai traits.

Definition at line 54 of file aitraits.cpp.

Referenced by player_limit_to_max_rates().

◆ ai_traits_init()

void ai_traits_init ( struct player pplayer)

Initialize ai traits for player.

Definition at line 28 of file aitraits.cpp.

Referenced by generate_players(), player_nation_defaults(), sg_load_player_main(), and sg_load_players().