home *** CD-ROM | disk | FTP | other *** search
/ Ultimate Game Collection / XULTI.ISO / 420 / wak.h < prev    next >
C/C++ Source or Header  |  1996-04-05  |  2KB  |  110 lines

  1. /**************************************************************************
  2.  
  3.             Main include file for word-tachistoscope
  4.  
  5. **************************************************************************/
  6.  
  7. #define MIN_ARG_CNT 1
  8. #define FILENAMELEN 30
  9.  
  10. #define SMALL_TEXT_SIZE 1
  11.  
  12. #define INCREMENT 1
  13. #define BIG_INCREMENT 10
  14. #define MAXINTERVAL 10000
  15. #define FREQ2PERIOD 1000.0
  16.  
  17. #define X_COORD 320
  18. #define Y_COORD 240
  19. /*******position of displayed words*****/
  20. #define X_FREQ_COORD 600
  21. #define Y_FREQ_COORD 10
  22. /*******position of refresh freq.******/
  23.  
  24. /**********Top Display*****************/
  25. #define TOP_COLOR LIGHTGREEN
  26. #define TX1 0
  27. #define TX2 639
  28. #define TY1 45
  29. #define TY2 TY1
  30.  
  31. #define TLX 33
  32. #define TLY 15
  33. #define TMX 311
  34. #define TMY TLY
  35. #define TRX 526
  36. #define TRY TLY
  37. #define TOFFSET 30
  38. #define TROFFSET 8
  39. #define TCOMPOFFSET 19
  40. #define TMWORD "words"
  41. #define TRWORD "Speed Units"
  42. /*************************************/
  43.  
  44. /********Bottom Display***************/
  45. #define BOTTOM_COLOR LIGHTGREEN
  46. #define BX1 0
  47. #define BX2 639
  48. #define BY1 455
  49. #define BY2 BY1
  50.  
  51. #define BLX 8
  52. #define BLY 455
  53. #define BMX 269
  54. #define BMY BLY
  55. #define BRX 550
  56. #define BRY BLY
  57. #define LWORD "[f] [F] Faster"
  58. #define MWORD "[s] [S] Slower"
  59. #define RWORD "[ESC] Quit"
  60. /************************************/
  61.  
  62. #define DEFAULT_INTERVAL 333
  63. /*******How long word is displayed******/
  64. /***** 333 ~~ 1/3 second ********/
  65. /****** 95 also try *************/
  66.  
  67. #define TEXT_SIZE 4
  68. /********size of displayed words*******/
  69.  
  70. #define MAXWORDLEN 40
  71. /***Max Length of word fetched from file***/
  72.  
  73. #define BACKGROUND_COLOR WHITE
  74.  
  75. #define ESC 27
  76. /*******ESCAPE key*****/
  77.  
  78. #define NUMLEN 11
  79.  
  80. #define FFACTOR .01
  81.  
  82. #define DEFAULT1 'd'
  83. #define DEFAULT2 'D'
  84.  
  85. #define QUIT 10
  86.  
  87. typedef enum { FALSE, TRUE } Boolean;
  88.  
  89. struct Stats
  90.        {
  91.         long wds;
  92.         int interval;
  93.         float frequency;
  94.         float requested_freq;
  95.         unsigned total_seconds;
  96.         unsigned minutes;
  97.         unsigned seconds;
  98.         };
  99.  
  100. void display_word( char *Word );
  101. void graphics_setup( int Background_color );
  102. void exit__( struct Stats sta_ );
  103. void opening_screen( void );
  104. void top_display( void );
  105. char *top_stats( struct Stats tstats );
  106. void bottom_display( void );
  107. struct Stats getword( struct Parameters p );
  108. void erase( char *text, int font_name, int font_size, int xc, int yc );
  109. void countdown_screen( void );
  110.