Freeciv-3.1: agent Struct Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Data Fields
agent Struct Reference

`#include <agents.h>`

## Data Fields

char | name [MAX_AGENT_NAME_LEN]
int | level
void(* | turn_start_notify )(void)
void(* | city_callbacks [CB_LAST])(int)
void(* | unit_callbacks [CB_LAST])(int)
void(* | tile_callbacks [CB_LAST])(struct tile *ptile)

## Detailed Description

Definition at line 40 of file agents.h.

## Field Documentation

## ◆ city_callbacks

void(* agent::city_callbacks[CB_LAST])(int)

Definition at line 45 of file agents.h.

Referenced by agents_city_changed(), agents_city_new(), agents_city_remove(), and cause_a_city_changed_for_agent().

## ◆ level

int agent::level

Definition at line 42 of file agents.h.

Referenced by register_agent().

## ◆ name

char agent::name[MAX_AGENT_NAME_LEN]

Definition at line 41 of file agents.h.

Referenced by is_outstanding_request(), and wait_for_requests().

## ◆ tile_callbacks

void(* agent::tile_callbacks[CB_LAST])(struct tile *ptile)

Definition at line 47 of file agents.h.

Referenced by agents_tile_changed(), agents_tile_new(), and agents_tile_remove().

## ◆ turn_start_notify

void(* agent::turn_start_notify) (void)

Definition at line 44 of file agents.h.

Referenced by agents_new_turn().

## ◆ unit_callbacks

void(* agent::unit_callbacks[CB_LAST])(int)

Definition at line 46 of file agents.h.

Referenced by agents_unit_changed(), agents_unit_new(), agents_unit_remove(), and cause_a_unit_changed_for_agent().