Advanced Strategic Command
Classes | Macros | Typedefs | Functions | Variables
history.cpp File Reference

Originally planed to provide history functions for ASC, but was never finished. Long derelicted. More...

#include <tpascal.inc>
#include "typen.h"
#include "config.h"
Include dependency graph for history.cpp:

Go to the source code of this file.

Classes

struct  rounddata
 
struct  tround
 
struct  xy
 

Macros

#define statc   0 /* StatisticCOlor */
 
#define hm   1.3 /* STatistic-Multiplikator Maxwert ist HM * grer als echter Maxwert */
 
#define trounddata   struct rounddata *
 
#define pround   struct tround *
 
#define kg   15
 
#define xstep   50 /* X-Beschriftungs-Abstand */
 
#define ystep   50 /* Y-Beschriftungs-Abstand */
 
#define linemx   5 /* X-Linien-Lnge */
 
#define linemy   5 /* Y-Linien-Lnge */
 

Typedefs

typedef struct rounddata rounddata
 
typedef struct rounddatatrounddata
 
typedef struct tround tround
 
typedef struct troundpround
 
typedef struct xy xy
 

Functions

char * malloc (int)
 
void countunits (void)
 
void starthistory (void)
 
void delhistory (void)
 
void tshowhistoryinit (void)
 
void tshowhistoryrun (void)
 
void tshowhistorybuttonpressed (void)
 
void showplayerstat (byte sp, boolean del)
 
void tshowhistorypaintstat (byte flag, byte id)
 
long * tshowhistorygetdata (struct *p, int *player)
 
void tshowhistorygetinfo (long *mn, long *mx, long *round)
 

Variables

pround rounds
 
pround asr
 
pround ar
 
pvehicle ae
 
pbuilding ab
 

Detailed Description

Originally planed to provide history functions for ASC, but was never finished. Long derelicted.

Definition in file history.cpp.

Macro Definition Documentation

#define hm   1.3 /* STatistic-Multiplikator Maxwert ist HM * grer als echter Maxwert */

Definition at line 65 of file history.cpp.

Referenced by tshowhistorypaintstat().

#define kg   15

Referenced by tshowhistoryinit().

#define linemx   5 /* X-Linien-Lnge */

Referenced by tshowhistorypaintstat().

#define linemy   5 /* Y-Linien-Lnge */

Referenced by tshowhistorypaintstat().

#define pround   struct tround *

Definition at line 84 of file history.cpp.

#define statc   0 /* StatisticCOlor */

Definition at line 64 of file history.cpp.

Referenced by tshowhistorypaintstat().

#define trounddata   struct rounddata *

Definition at line 69 of file history.cpp.

#define xstep   50 /* X-Beschriftungs-Abstand */

Referenced by tshowhistorypaintstat().

#define ystep   50 /* Y-Beschriftungs-Abstand */

Referenced by tshowhistorypaintstat().

Typedef Documentation

typedef struct tround* pround

Definition at line 91 of file history.cpp.

typedef struct rounddata rounddata
typedef struct tround tround
typedef struct rounddata* trounddata

Definition at line 83 of file history.cpp.

typedef struct xy xy

Function Documentation

void countunits ( void  )
void delhistory ( void  )

Definition at line 185 of file history.cpp.

References tround::next, tround::player, and rounds.

char* malloc ( int  )
void showplayerstat ( byte  sp,
boolean  del 
)

Definition at line 324 of file history.cpp.

References dblue, line(), tround::next, tround::nr, and rounds.

Referenced by tshowhistorypaintstat().

void starthistory ( void  )

Definition at line 175 of file history.cpp.

References malloc(), tround::next, tround::nr, and tround::player.

void tshowhistorybuttonpressed ( void  )

Definition at line 310 of file history.cpp.

long* tshowhistorygetdata ( struct *  p,
int *  player 
)

Definition at line 423 of file history.cpp.

void tshowhistorygetinfo ( long *  mn,
long *  mx,
long *  round 
)
void tshowhistoryinit ( void  )

Definition at line 221 of file history.cpp.

References actmap, dlg_in3d, kg, mousevisible(), GameMap::player, and rahmen().

void tshowhistorypaintstat ( byte  flag,
byte  id 
)
void tshowhistoryrun ( void  )

Definition at line 302 of file history.cpp.

References ct_esc.

Variable Documentation

pbuilding ab

Definition at line 96 of file history.cpp.

Referenced by countunits(), and viewterraininfo().

pvehicle ae

Definition at line 95 of file history.cpp.

Referenced by countunits().

pround ar

Definition at line 94 of file history.cpp.

Referenced by main(), and tshowhistorypaintstat().

pround asr

Definition at line 94 of file history.cpp.

pround rounds

Definition at line 93 of file history.cpp.

Referenced by countunits(), delhistory(), showplayerstat(), and tshowhistorygetinfo().