Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

history.c File Reference

#include "conq.h"
#include "history.def"

Include dependency graph for history.c:

Include dependency graph

Defines

#define DEF_HEVT(NAME, code, DATADESCS)   { NAME, DATADESCS },
#define NUMPASTBUFS   3

Functions

void init_history (void)
void start_history (void)
HistEventcreate_historical_event (HistEventType type)
HistEventrecord_event (HistEventType type, SideMask observers,...)
void record_unit_death (Unit *unit, HistEventType reason)
PastUnitchange_unit_to_past_unit (Unit *unit)
void record_unit_side_change (Unit *unit, Side *newside, HistEventType reason, Unit *agent)
void record_unit_name_change (Unit *unit, char *newname)
void count_gain (Side *side, int u, enum gain_reasons reason)
void count_loss (Side *side, int u, enum loss_reasons reason)
PastUnitcreate_past_unit (int type, int id)
PastUnitfind_past_unit (int n)
void end_history (void)
HistEventget_nth_history_line (Side *side, int n, HistEvent **nextevt)
int update_total_hist_lines (Side *side)
int build_hist_contents (Side *side, int n, HistEvent **histcontents, int numvishistlines)
void dump_statistics (void)
char * past_unit_desig (PastUnit *pastunit)
int total_gain (Side *side, int u)
int total_loss (Side *side, int u)

Variables

int any_post_event_scores
int need_post_event_scores
HevtDefn hevtdefns []
 Historical Event Definition array.

HistEventhistory
int tmphevtdata1
 Tempoary event data 1.

PastUnitpast_unit_list
 Past Unit History list.

PastUnitlast_past_unit
int next_past_unit_id = -2
int curpastbuf = 0
char * pastbufs [NUMPASTBUFS] = { NULL, NULL, NULL }
int statistics_wanted = FALSE
 Statistics wanted.

int statistics_dumped

Define Documentation

#define DEF_HEVT NAME,
code,
DATADESCS   )     { NAME, DATADESCS },
 

#define NUMPASTBUFS   3
 


Function Documentation

int build_hist_contents Side side,
int  n,
HistEvent **  histcontents,
int  numvishistlines
 

PastUnit* change_unit_to_past_unit Unit unit  ) 
 

void count_gain Side side,
int  u,
enum gain_reasons  reason
 

void count_loss Side side,
int  u,
enum loss_reasons  reason
 

HistEvent* create_historical_event HistEventType  type  ) 
 

PastUnit* create_past_unit int  type,
int  id
 

void dump_statistics void   ) 
 

void end_history void   ) 
 

PastUnit* find_past_unit int  n  ) 
 

HistEvent* get_nth_history_line Side side,
int  n,
HistEvent **  nextevt
 

void init_history void   ) 
 

char* past_unit_desig PastUnit pastunit  ) 
 

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 start_history void   ) 
 

int total_gain Side side,
int  u
 

int total_loss Side side,
int  u
 

int update_total_hist_lines Side side  ) 
 


Variable Documentation

int any_post_event_scores
 

int curpastbuf = 0
 

HevtDefn hevtdefns[]
 

Historical Event Definition array.

HistEvent* history
 

PastUnit* last_past_unit
 

int need_post_event_scores
 

int next_past_unit_id = -2
 

PastUnit* past_unit_list
 

Past Unit History list.

char* pastbufs[NUMPASTBUFS] = { NULL, NULL, NULL }
 

int statistics_dumped
 

int statistics_wanted = FALSE
 

Statistics wanted.

int tmphevtdata1
 

Tempoary event data 1.


Generated on Sat Sep 17 10:29:13 2005 for XconqKernel by doxygen 1.3.6