Freeciv-3.3
Loading...
Searching...
No Matches
Functions
aitraits.c File Reference
#include "mem.h"
#include "rand.h"
#include "game.h"
#include "nation.h"
#include "player.h"
#include "traits.h"
#include "aitraits.h"

Go to the source code of this file.

Functions

void ai_traits_init (struct player *pplayer)
 
void ai_traits_close (struct player *pplayer)
 
int ai_trait_get_value (enum trait tr, 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().