Freeciv-3.2
Loading...
Searching...
No Matches
Functions
aitraits.h File Reference
#include "traits.h"

Go to the source code of this file.

Functions

int ai_trait_get_value (enum trait tr, struct player *pplayer)
 
void ai_traits_init (struct player *pplayer)
 
void ai_traits_close (struct player *pplayer)
 

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 59 of file aitraits.c.

Referenced by server_remove_player().

◆ ai_traits_init()

void ai_traits_init ( struct player pplayer)

Initialize ai traits for player

Definition at line 33 of file aitraits.c.

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