|
Classes |
struct | a_hevt_defn |
| Historical Event description. More...
|
struct | a_histevent |
| Historical Event. More...
|
struct | a_pastunit |
| Unit History. More...
|
Defines |
#define | DEF_HEVT(name, CODE, datadescs) CODE, |
Typedefs |
typedef a_hevt_defn | HevtDefn |
| Historical Event description.
|
typedef a_histevent | HistEvent |
| Historical Event.
|
typedef a_pastunit | PastUnit |
| Unit History.
|
Enumerations |
enum | HistEventType { NUMHEVTTYPES
} |
| History Event type. More...
|
enum | gain_reasons {
initial_gain = 0,
build_gain = 1,
capture_gain = 2,
other_gain = 3,
num_gain_reasons = 4
} |
| Reasons for gain. More...
|
enum | loss_reasons {
combat_loss = 0,
capture_loss = 1,
starvation_loss = 2,
accident_loss = 3,
attrition_loss = 4,
disband_loss = 5,
other_loss = 6,
num_loss_reasons = 7
} |
| Reasons for loss. More...
|
enum | damage_reasons { combat_dmg,
accident_dmg,
attrition_dmg,
starvation_dmg
} |
| Damage resons. More...
|
Functions |
void | init_history (void) |
void | start_history (void) |
HistEvent * | create_historical_event (HistEventType type) |
HistEvent * | record_event (HistEventType type, SideMask observers,...) |
void | record_unit_death (Unit *unit, HistEventType reason) |
void | record_unit_name_change (Unit *unit, char *newname) |
void | record_unit_side_change (Unit *unit, Side *newside, HistEventType reason, Unit *agent) |
void | count_gain (Side *side, int u, enum gain_reasons reason) |
void | count_loss (Side *side, int u, enum loss_reasons reason) |
void | end_history (void) |
HistEvent * | get_nth_history_line (Side *side, int n, HistEvent **nextevt) |
PastUnit * | create_past_unit (int type, int id) |
PastUnit * | find_past_unit (int n) |
char * | past_unit_desig (PastUnit *pastunit) |
PastUnit * | change_unit_to_past_unit (Unit *unit) |
void | dump_statistics (void) |
int | update_total_hist_lines (Side *side) |
int | build_hist_contents (Side *side, int n, HistEvent **histcontents, int numvis) |
int | total_gain (Side *side, int u) |
int | total_loss (Side *side, int u) |
Variables |
HevtDefn | hevtdefns [] |
| Historical Event Definition array.
|
HistEvent * | history |
PastUnit * | past_unit_list |
| Past Unit History list.
|