home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Current Shareware 1994 January
/
SHAR194.ISO
/
catalogs
/
mtchplay.zip
/
GLOBALS.H
< prev
next >
Wrap
Text File
|
1993-02-10
|
2KB
|
52 lines
/* GLOBALS.H Global variables and arrays for MTCHPLAY */
typedef struct {
char name[21];
int hcp;
int team;
char scores[25];
int won,tied,lost;
int gross,net,points;
} PLAYER;
PLAYER player[MAXFL][MAXSZ];
int outcome[MAXSZ][MAXSZ]; /* results of matches in a given flight */
/* indexing array: ordering players by points or name */
int indx[MAXSZ];
/* location of score on hole i(=0..17) in formatted score string */
int ndx[] = {0,1,2,4,5,6,8,9,10,13,14,15,17,18,19,21,22,23};
/* handicap order of holes 0..17 for course being played */
int order[17];
/* flags for recalculation of flight */
int recalc[] = {0,0,0,0,0,0,0,0,0,0};
int NP[MAXFL]; /* number of players in each flight */
int oldNP[MAXFL]; /* used in calculation routines */
int numflights; /* number of flights */
/* attributes for various screens */
int norm_attr=16*3+8, high_attr=16*7+8, old_attr;
int mono = 0; /* flag */
int minflt, maxflt; /* smallest/largest nonempty flights */
char input_file[13]; /* name of current input file */
char datafile[13]; /* name of current data file */
int desc_flag; /* flag for display of menu descriptions */
char mark[] = {176,'\0'}; /* single shaded block */
char namefield[] = /* 19 marks */
{176,176,176,176,176,176,176,176,176,176,176,176,176,176,
176,176,176,176,176,'\0'};
char hcpfield[] = {176,176,'\0'};
char scorefield[] = {176,176,176,45,176,176,176,45,176,176,176,45,45,
176,176,176,45,176,176,176,45,176,176,176,'\0'};
int no_space = 0; /* flag for get_string() */
int left = 28, top = 1, right = 80, bottom = 25; /* for data window */
char data_title[81];