Freeciv21
Develop your civilization from humble roots to a global empire
ailog.cpp File Reference
#include "map.h"
#include "nation.h"
#include "player.h"
#include "research.h"
#include "notify.h"
#include "aidata.h"
#include "aiplayer.h"
#include "aiunit.h"
#include "daicity.h"
#include "ailog.h"
+ Include dependency graph for ailog.cpp:

Go to the source code of this file.

Functions

void dai_city_log (struct ai_type *ait, char *buffer, int buflength, const struct city *pcity)
 Produce logline fragment for srv_log. More...
 
void dai_unit_log (struct ai_type *ait, char *buffer, int buflength, const struct unit *punit)
 Produce logline fragment for srv_log. More...
 
QString tech_log_prefix (ai_type *ait, const player *pplayer, advance *padvance)
 Log player tech messages. More...
 
QString diplo_log_prefix (ai_type *ait, const player *pplayer, const player *aplayer)
 Log player messages, they will appear like this. More...
 
QString bodyguard_log_prefix (ai_type *ait, const unit *punit)
 Log message for bodyguards. More...
 

Function Documentation

◆ bodyguard_log_prefix()

QString bodyguard_log_prefix ( ai_type ait,
const unit punit 
)

Log message for bodyguards.

They will appear like this Polish Mech. Inf.[485] bodyguard (38,22){Riflemen:574@37,23} note that these messages are likely to wrap if long.

Definition at line 98 of file ailog.cpp.

◆ dai_city_log()

void dai_city_log ( struct ai_type ait,
char *  buffer,
int  buflength,
const struct city pcity 
)

Produce logline fragment for srv_log.

Definition at line 32 of file ailog.cpp.

Referenced by cai_city_log(), texwai_city_log(), and twai_city_log().

◆ dai_unit_log()

void dai_unit_log ( struct ai_type ait,
char *  buffer,
int  buflength,
const struct unit punit 
)

Produce logline fragment for srv_log.

Definition at line 44 of file ailog.cpp.

Referenced by cai_unit_log(), texwai_unit_log(), and twai_unit_log().

◆ diplo_log_prefix()

QString diplo_log_prefix ( ai_type ait,
const player pplayer,
const player aplayer 
)

Log player messages, they will appear like this.

where ti is timer, co countdown and lo love for target, who is e.

Definition at line 78 of file ailog.cpp.

◆ tech_log_prefix()

QString tech_log_prefix ( ai_type ait,
const player pplayer,
advance padvance 
)

Log player tech messages.

Definition at line 56 of file ailog.cpp.