#include <ai.hpp>
Definition at line 36 of file ai.hpp.
◆ AIManager()
◆ calc_nation_risk()
void AIManager::calc_nation_risk |
( |
const World & |
world, |
|
|
const Nation & |
nation |
|
) |
| |
|
inline |
◆ calc_province_risk()
void AIManager::calc_province_risk |
( |
const World & |
world, |
|
|
const Nation & |
nation |
|
) |
| |
|
inline |
◆ calc_weights()
void AIManager::calc_weights |
( |
const Nation & |
nation | ) |
|
|
inline |
Recalculate weights iff losing territory.
Definition at line 77 of file ai.hpp.
◆ collect_eval_provinces()
void AIManager::collect_eval_provinces |
( |
const World & |
world, |
|
|
const Nation & |
nation |
|
) |
| |
|
inline |
◆ get_highest_priority_province()
◆ get_nation_risk()
float AIManager::get_nation_risk |
( |
const World & |
world, |
|
|
const Nation & |
nation, |
|
|
const Nation & |
other |
|
) |
| |
|
inline |
◆ get_rand()
float AIManager::get_rand |
( |
| ) |
const |
|
inline |
◆ recalc_weights()
void AIManager::recalc_weights |
( |
| ) |
|
|
inline |
Reshuffle weights of the AI.
Definition at line 64 of file ai.hpp.
◆ coastal_weight
float AIManager::coastal_weight = 1.f |
◆ conqueror_weight
float AIManager::conqueror_weight = 1.f |
◆ erratic
float AIManager::erratic = 1.f |
◆ eval_provinces
◆ gains
size_t AIManager::gains = 0 |
◆ last_constrolled_cnt
size_t AIManager::last_constrolled_cnt = 0 |
◆ losses
size_t AIManager::losses = 0 |
◆ military_strength
float AIManager::military_strength = 0.f |
◆ nations_risk_factor
std::vector<float> AIManager::nations_risk_factor |
◆ override_threshold
float AIManager::override_threshold = 1.f |
◆ potential_risk
std::vector<float> AIManager::potential_risk |
◆ reconquer_weight
float AIManager::reconquer_weight = 1.f |
◆ strength_threshold
float AIManager::strength_threshold = 0.5f |
◆ unit_battle_weight
float AIManager::unit_battle_weight = 1.f |
◆ unit_exist_weight
float AIManager::unit_exist_weight = 1.f |
◆ war_weight
float AIManager::war_weight = 1.f |
The documentation for this struct was generated from the following file: