home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / XAP / XGAMES / SPIDER.TAR / spider / globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-28  |  1.6 KB  |  102 lines

  1. /*
  2.  *    Spider
  3.  *
  4.  *    (c) Copyright 1989, Donald R. Woods and Sun Microsystems, Inc.
  5.  *    (c) Copyright 1990, David Lemke and Network Computing Devices Inc.
  6.  *
  7.  *    See copyright.h for the terms of the copyright.
  8.  *
  9.  *    @(#)globals.h    2.1    90/04/25
  10.  *
  11.  */
  12.  
  13. /*
  14.  * spider global variables
  15.  */
  16. Display    *dpy;
  17. int    screen;
  18. Window    table;
  19. #ifdef     KITLESS
  20. Window    message_win;
  21. XFontStruct    *message_font;
  22. #endif    /* KITLESS */
  23. Pixmap    greenmap;
  24. Pixmap    redmap;
  25. Pixmap    logomap;
  26.  
  27. unsigned long    blackpixel;
  28. unsigned long    whitepixel;
  29. unsigned long    borderpixel;
  30. unsigned long    greenpixel;
  31.  
  32. Bool    is_color;
  33.  
  34. CardList    deck;
  35. CardList    stack[NUM_STACKS];        /* tableau */
  36. CardList    piles[NUM_PILES];        /* full suits */
  37.  
  38. int        table_height;
  39. int        table_width;
  40.  
  41. int        deck_index;
  42.  
  43. int        draw_count;
  44.  
  45. Bool        restart;
  46. int        deal_number;
  47.  
  48. extern char    *version;
  49. extern char    *build_date;
  50.  
  51. /* function decls */
  52. char    *rank_name();
  53. char    *rnk_name();
  54. char    *suit_name();
  55. #ifdef    DEBUG
  56. char    *type_name();
  57. #endif    /* DEBUG */
  58. char    *get_selection();
  59. char    *remove_newlines();
  60.  
  61. Bool    can_move();
  62. Bool    can_move_to();
  63.  
  64. CardList    best_card_move();
  65. CardPtr    last_card();
  66.  
  67. int    replay();
  68.  
  69. void    best_list_move();
  70. void    move_to_list();
  71. void    move_to_pile();
  72. void    recompute_list_deltas();
  73.  
  74. void    show_message();
  75. void    card_message();
  76. void    card2_message();
  77. void    clear_message();
  78. void    print_version();
  79.  
  80. void    show_play();
  81. void    locate();
  82.  
  83. void    advise_best_move();
  84. void    delay();
  85. void    force_redraw();
  86.  
  87. #ifndef KITLESS
  88. void    key_press();
  89. void    redraw_table();
  90. void    button_press();
  91. void    button_release();
  92. void    do_expand();
  93. #endif KITLESS
  94.  
  95. #ifdef XAW
  96. Bool    can_get_help_files();
  97. #endif
  98.  
  99. extern char    *malloc();
  100. extern char    *calloc();
  101. extern char    *realloc();
  102.