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

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.

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 rounddata rounddata
typedef rounddatatrounddata
typedef tround tround
typedef troundpround
typedef 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.


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.

#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 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   ) 
 

Definition at line 99 of file history.cpp.

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

void delhistory void   ) 
 

Definition at line 185 of file history.cpp.

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

char* malloc int   ) 
 

Referenced by asc_malloc(), countunits(), MemoryStreamCopy::MemoryStreamCopy(), PG_XMLTag::PG_XMLTag(), SaveUserData(), starthistory(), strdup(), strupr(), zoomSurfaceRGBA(), and zoomSurfaceY().

void showplayerstat byte  sp,
boolean  del
 

Definition at line 324 of file history.cpp.

References dblue, and line().

Referenced by tshowhistorypaintstat().

void starthistory void   ) 
 

Definition at line 175 of file history.cpp.

References malloc(), 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
 

Definition at line 464 of file history.cpp.

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

void tshowhistoryinit void   ) 
 

Definition at line 221 of file history.cpp.

References dlg_in3d, kg, mousevisible(), and rahmen().

void tshowhistorypaintstat byte  flag,
byte  id
 

Definition at line 344 of file history.cpp.

References activefontsettings, centertext, dblue, hm, line(), linemx, linemy, max(), min(), tround::next, tround::player, righttext, showplayerstat(), showtext2(), statc, strr(), 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 viewterraininfo().

pvehicle ae
 

Definition at line 95 of file history.cpp.

Referenced by countunits().

pround ar
 

Definition at line 94 of file history.cpp.

pround asr
 

Definition at line 94 of file history.cpp.

pround rounds
 

Definition at line 93 of file history.cpp.


Generated on Tue Jun 24 01:47:41 2008 for Advanced Strategic Command by  doxygen 1.4.2