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

Defines

#define statc   0
#define hm   1.3
#define trounddata   struct rounddata *
#define pround   struct tround *
#define kg   15
#define xstep   50
#define ystep   50
#define linemx   5
#define linemy   5

Typedefs

typedef rounddatatrounddata
typedef troundpround

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.


Define Documentation

#define hm   1.3

Definition at line 65 of file history.cpp.

Referenced by tshowhistorypaintstat().

#define kg   15

Referenced by tshowhistoryinit().

#define linemx   5

Referenced by tshowhistorypaintstat().

#define linemy   5

Referenced by tshowhistorypaintstat().

#define pround   struct tround *

Definition at line 84 of file history.cpp.

Referenced by tshowhistorygetinfo(), and tshowhistorypaintstat().

#define statc   0

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

Referenced by tshowhistorypaintstat().

#define ystep   50

Referenced by tshowhistorypaintstat().


Typedef Documentation

typedef struct tround* pround

Definition at line 91 of file history.cpp.

typedef struct rounddata* trounddata

Definition at line 83 of file history.cpp.


Function Documentation

void countunits ( void   ) 

Definition at line 99 of file history.cpp.

References ab, ae, ar, malloc(), tround::next, and rounds.

void delhistory ( void   ) 

Definition at line 185 of file history.cpp.

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

char* malloc ( int   ) 

Referenced by asc_malloc(), tdialogbox::buildgraphics(), countunits(), tdialogbox::execbutton(), tvirtualscreenbuf::init(), tdialogbox::knopfdruck(), loadpalette(), MemoryStreamCopy::MemoryStreamCopy(), tdialogbox::newknopfdruck(), tdialogbox::newknopfdruck2(), tdialogbox::newknopfdruck3(), tdialogbox::newknopfdruck4(), readOldEvent(), starthistory(), strupr(), tinitgfxengine::tinitgfxengine(), Surface::toBGI(), uncompress_rlepict(), and yyalloc().

void showplayerstat ( byte  sp,
boolean  del 
)

Definition at line 324 of file history.cpp.

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

void starthistory ( void   ) 

Definition at line 175 of file history.cpp.

References malloc(), and rounds.

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 
)

Definition at line 464 of file history.cpp.

References rounddata::buildings, rounddata::devtechs, rounddata::energy, rounddata::material, tround::next, tround::player, pround, rounddata::research, rounds, rounddata::sprit, and rounddata::vehicle.

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 
)

Definition at line 344 of file history.cpp.

References activefontsettings, ar, centertext, dblue, hm, line(), linemx, linemy, max(), min(), tround::next, tround::nr, tround::player, pround, righttext, rounds, showtext2(), statc, xy::x, xstep, xy::y, and ystep.

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 changeunitvalues(), and countunits().

pround ar

Definition at line 94 of file history.cpp.

Referenced by countunits(), delhistory(), main(), showplayerstat(), 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(), starthistory(), tshowhistorygetinfo(), and tshowhistorypaintstat().


Generated on Mon May 21 01:37:01 2012 for Advanced Strategic Command by  doxygen 1.5.1