home *** CD-ROM | disk | FTP | other *** search
/ The CIA World Factbook 1992 / k3bimage.iso / sel / 04 / 0009 / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-02  |  1.3 KB  |  39 lines

  1. /* globals.h -- Global data for Targ-Hurt ESP Trainer. 
  2.  
  3.    History: rhs 14-mar-87 ... original
  4. */
  5. #include "mancon.h"
  6. #include "declares.h"
  7.  
  8. char gc_espmode=NULL;            /* In clairvoyance or precognition mode? */
  9. int gi_tries=0;                  /* How many times has user answered? */
  10. int gi_hits=0;                   /* How many answers were correct? */
  11. int gia_cursorkeys[]= { UP, DOWN, RIGHT, LEFT }; /* Maps arrow keys to a 
  12.                                  number between 0 and 3. */
  13. int gi_wasahit=FALSE;            /* Was last answer correct or not? */
  14.  
  15.  
  16. /* Encouragement messages (encouragement levels) */
  17. struct encouragement gsa_enc[] =
  18.               { { 0, 0.0,  "" },
  19.                 { 6, 0.24, "Traces of ESP!" },
  20.                 { 8, 0.32, "ESP ability present!!" },
  21.                 { 10,0.40, "Useful at Las Vegas!!!" },
  22.                 { 12,0.48, "Outstanding ESP ability!!!!" },
  23.                 { 14,0.56, "Psychic! Medium! Oracle!!!!!" }
  24.               };
  25.  
  26. int gi_encourage=0;              /* What is current encouragement level? */
  27.  
  28. int gi_direction=0;               /* What was the machine's last selection */
  29.  
  30.  
  31. /* Terminal's foreground and background colors: */
  32. int gi_fg1=0, gi_fg2=0, gi_bg1=0, gi_bg2=0;
  33.  
  34. /* CRT video mode */
  35. int gi_vidmode=0;
  36.  
  37. /* Does the user want sound? */
  38. int gi_sound=ON;
  39.