home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / top2src.zip / GAMES.ZIP / OLDPOKER.ZIP / OLDGLOBL.C next >
C/C++ Source or Header  |  1995-04-28  |  4KB  |  146 lines

  1. #include "top.h"
  2.  
  3. #define TOP_VERSION "2.00.5115"
  4.  
  5. extern unsigned _stklen = 8192L;
  6.  
  7. TOP_config_typ cfg;
  8. XINT user_rec_num = -1;
  9. user_data_typ user;
  10. /* stringarray3 XFAR *words = NULL; */
  11. char XFAR *word_str = NULL;
  12. XINT XFAR *word_pos = NULL;
  13. XINT XFAR *word_len = NULL;
  14. stringarray1 XFAR *verbs = NULL;
  15. unsigned char XFAR *actiontypes = NULL;
  16. stringarray2 XFAR *handles = NULL;
  17. unsigned char XFAR *activenodes = NULL;
  18. XINT numactions = 0;
  19. clock_t lastpoll = 0;
  20. unsigned char XFAR *outbuf =NULL;
  21. char isregistered;
  22. RKVALID registeredtop = RK_UNREGISTERED;
  23. unsigned char XFAR *registeredto = NULL;
  24. unsigned char XFAR *regname = NULL;
  25. unsigned char XFAR *regsystem = NULL;
  26. char node_added = 0;
  27. unsigned char XFAR *forgetstatus = NULL;
  28. XINT lastforgetter = -1;
  29. char localmode = 0, lanmode = 0;
  30. struct ffblk actfileinfo;
  31. char XFAR *busynodes = NULL;
  32. struct ffblk ipcfildat;
  33. XINT cfgfil, userfil, nidxfil, nidx2fil, msginfil, msgoutfil, useronfil,
  34.     ipcinfil, ipcoutfil, /*actionfil,*/ rapagefil, midxinfil, midxoutfil,
  35.     chgfil, slotsfil, pokdatafil;
  36. FILE *actionfil = NULL;
  37. struct ffblk midxfileinfo;
  38. unsigned long slotsbet = 0;
  39. XINT lowestnode = 0;
  40. //unsigned char *langtext;
  41. //unsigned long *langstart;
  42. lang_text_typ XFAR **langptrs;
  43. long numlang;
  44. XINT usedcmdlen;
  45. XINT nodecfgfil;
  46. long curchannel;
  47. unsigned char *wordret;
  48. node_idx_typ *node;
  49. unsigned char *outputstr;
  50. XINT matchfil;
  51. TOP_nodecfg_typ *nodecfg;
  52. char outproclang;
  53. char outproccol;
  54. char outprocact;
  55. unsigned XINT outdefattrib;
  56. unsigned char *lastcmd;
  57. channel_data_typ *chan;
  58.  
  59. unsigned char ver[16] = TOP_VERSION;
  60.  
  61. // unsigned char XFAR *argptrs[9];
  62. unsigned char outnum[9][12];
  63.  
  64. char (XFAR *bbs_call_loaduseron)(XINT nodenum, bbsnodedata_typ *userdata) = NULL;
  65. char (XFAR *bbs_call_saveuseron)(XINT nodenum, bbsnodedata_typ *userdata) = NULL;
  66. XINT (XFAR *bbs_call_processmsgs)(void) = NULL;
  67. char (XFAR *bbs_call_page)(XINT nodenum, unsigned char *pagebuf) = NULL;
  68. void (XFAR *bbs_call_setexistbits)(bbsnodedata_typ *userdata) = NULL;
  69. void (XFAR *bbs_call_login)(void) = NULL;
  70. void (XFAR *bbs_call_logout)(void) = NULL;
  71. XINT (XFAR *bbs_call_openfiles)(void) = NULL;
  72. XINT (XFAR *bbs_call_updateopenfiles)(void) = NULL;
  73.  
  74. unsigned char *bbsnames[BBSTYPES] =
  75.     {
  76.     "Unknown",
  77.     "RemoteAccess 2.0x",
  78.     "Maximus 2.0x",
  79.     "EzyCom 1.20",
  80.     "SuperBBS 1.1x",
  81.     "Concord 0.01"
  82.     };
  83.  
  84. unsigned char *nodetypes[3] =
  85.     {
  86.     "Remote",
  87.     "Local",
  88.     "Network"
  89.     };
  90.  
  91. unsigned char poker_nagtimes[6] = { 60, 80, 100, 110, 115, 120 };
  92.  
  93. unsigned char XFAR *ra_statustypes[8] = ///!!! Starting here...move to dynam
  94.     {
  95.     "Browsing",
  96.     "File Xfer",
  97.     "Messages",
  98.     "In A Door",
  99.     "SysOp Chat",
  100.     "Questions",
  101.     "Conference",
  102.     "New User"
  103.     };
  104.  
  105. unsigned char XFAR *sbbs_statustypes[11] =
  106.     {
  107.     "Browsing",
  108.     "D'nloading",
  109.     "Uploading",
  110.     "Read Msgs.",
  111.     "Write Msg.",
  112.     "Sysop Chat",
  113.     "In A Door",
  114.     "New User",
  115.     "QWK Mail",
  116.     "File List",
  117.     "Node Chat"
  118.     };
  119.  
  120. unsigned char XFAR *card_names[14] =
  121.     {
  122.     "Ace",
  123.     "Deuce",
  124.     "Three",
  125.     "Four",
  126.     "Five",
  127.     "Six",
  128.     "Seven",
  129.     "Eight",
  130.     "Nine",
  131.     "Ten",
  132.     "Jack",
  133.     "Queen",
  134.     "King",
  135.     "Ace"
  136.     };
  137. unsigned char XFAR *card_suitnames[4] =
  138.     {
  139.     "Spade",
  140.     "Club",
  141.     "Heart",
  142.     "Diamond"
  143.     };
  144. unsigned char XFAR card_symbols[14] = "A23456789TJQKA";
  145. unsigned char XFAR card_suits[8] = "SCHDschd"; //\x6\x5\x3\x4";
  146.