home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / go / prog / xigcv2_8.taz / xigcv2_8 / shared.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-08  |  1.7 KB  |  75 lines

  1. /* shared.h
  2.  * S.Coffin  USWAT   3/93
  3.  *
  4.  * bits for compatibility with the IGS
  5.  *
  6.  * adapted from tcasey@leo.unm.edu
  7.  */
  8.  
  9. #ifndef SHARED_H
  10. #define SHARED_H
  11.  
  12. #define MAX_BRD_SZ 25
  13.  
  14. typedef enum {
  15.     UNKNOWN    =  0,
  16.           PROMPT    =  1,    /* A Prompt (never)    */
  17.     BEEP    =  2,     /* \7 telnet         */
  18.     BOARD    =  3,    /* Board being drawn     */
  19.     DOWN    =  4,    /* The server is going down */
  20.     ERROR    =  5,    /* An error reported    */
  21.           FIL    =  6,    /* File being sent    */
  22.     GAMES    =  7,    /* Games listing    */
  23.           HELP    =  8,    /* Help file        */
  24.     INFO    =  9,    /* Generic info        */
  25.     LAST    = 10,    /* Last command        */
  26.           KIBITZ    = 11,    /* Kibitz strings    */
  27.     LOAD    = 12,    /* Loading a game    */
  28.     LOOK_M    = 13,    /* Look         */
  29.           MESSAGE    = 14,    /* Message lising    */
  30.           MOVE    = 15,    /* Move #:(B) A1    */
  31.     OBSERVE    = 16,    /* Observe report    */
  32.     REFRESH    = 17,    /* Refresh of a board    */
  33.           SAVED    = 18,    /* Stored command    */
  34.           SAY    = 19,    /* Say string        */
  35.           SCORE    = 20,    /* Score report        */
  36.           SHOUT    = 21,    /* Shout string        */
  37.           STATUS    = 22,    /* Current Game status    */
  38.     STORED    = 23,    /* Stored games        */
  39.           TELL    = 24,    /* Tell string        */
  40.     THIST    = 25,    /* Thist report        */
  41.     TIM    = 26,    /* times command    */
  42.     WHO    = 27,    /* who command        */
  43.     UNDO    = 28,    /* Undo report        */
  44.     SHOW    = 29,
  45.     TRANS   = 30,    /* Translation info    */
  46.     PROVERB = 31,    /* Go proverb        */
  47.     YELL    = 32    /* Channel yelling    <=== last value */
  48.  
  49. } MessageType;
  50.  
  51. #define LOGGEDON WAITING
  52. typedef enum {
  53.     LOGON        = 0,
  54.     PASSWORD    = 1,
  55.     PASSWD_NEW    = 2,
  56.     PASSWD_CONFIRM    = 3, 
  57.     REGISTER    = 4, 
  58.     WAITING        = 5,
  59.     PLAYING        = 6,
  60.     SCORING        = 7,
  61.     OBSERVING    = 8
  62. } State;
  63.  
  64. #define NUM_RANKS num_ranks
  65. #define NUM_SPECIAL 2
  66.  
  67. /*
  68.  * verticies
  69.  */
  70. #define TOP 0
  71. #define MID 1
  72. #define BOT 2
  73.  
  74. #endif /* SHARED_H */
  75.