home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / catalogs / mtchplay.zip / GLOBALS.H < prev    next >
Text File  |  1993-02-10  |  2KB  |  52 lines

  1. /* GLOBALS.H     Global variables and arrays for MTCHPLAY */
  2.  
  3. typedef struct {
  4.   char name[21];
  5.   int hcp;
  6.   int team;
  7.   char scores[25];
  8.   int won,tied,lost;
  9.   int gross,net,points;
  10. } PLAYER;
  11. PLAYER player[MAXFL][MAXSZ];
  12.  
  13. int outcome[MAXSZ][MAXSZ];         /* results of matches in a given flight */
  14.  
  15. /* indexing array: ordering players by points or name */
  16. int indx[MAXSZ];
  17.  
  18. /* location of score on hole i(=0..17) in formatted score string */
  19. int ndx[] = {0,1,2,4,5,6,8,9,10,13,14,15,17,18,19,21,22,23};
  20.  
  21. /* handicap order of holes 0..17 for course being played */
  22. int order[17];
  23.  
  24. /* flags for recalculation of flight */
  25. int recalc[] = {0,0,0,0,0,0,0,0,0,0}; 
  26.  
  27. int NP[MAXFL];        /* number of players in each flight */
  28. int oldNP[MAXFL];     /* used in calculation routines */
  29. int numflights;       /* number of flights */
  30.  
  31.  
  32. /* attributes for various screens */
  33. int norm_attr=16*3+8, high_attr=16*7+8, old_attr;
  34. int mono = 0;                 /* flag */
  35. int minflt, maxflt;           /* smallest/largest nonempty flights */
  36. char input_file[13];          /* name of current input file */
  37. char datafile[13];            /* name of current data file */
  38. int desc_flag;                /* flag for display of menu descriptions */
  39. char mark[] = {176,'\0'};     /* single shaded block */
  40. char namefield[] =            /* 19 marks */
  41.     {176,176,176,176,176,176,176,176,176,176,176,176,176,176,
  42.      176,176,176,176,176,'\0'};
  43. char hcpfield[] = {176,176,'\0'};
  44. char scorefield[] = {176,176,176,45,176,176,176,45,176,176,176,45,45,
  45.                          176,176,176,45,176,176,176,45,176,176,176,'\0'};
  46.  
  47. int no_space = 0;             /* flag for get_string() */
  48. int left = 28, top = 1, right = 80, bottom = 25;   /* for data window */
  49.  
  50. char data_title[81];
  51.  
  52.