home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Games 3 / cd.iso / os2 / pmgnuchs / pmchess.h < prev    next >
Text File  |  1994-04-20  |  3KB  |  70 lines

  1. /*
  2. //  Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
  3. //  Copyright (C) 1988, 1989, 1990  John Stanback
  4. //
  5. //  Project:    OS/2 PM Port of GNU CHESS 3.1 (PmChess)
  6. //
  7. //  Version:    1990-11-17
  8. //
  9. //  Include:    Main Include (PmChess.h)
  10. //
  11. //   Porter:    Ported to Windows 3.0 by Darly Baker
  12. //
  13. //   Porter:    Ported to OS/2 1.2+ by Kent Cedola
  14. //
  15. //   System:    OS2 1.2 using Microsoft C 6.0
  16. //
  17. //  License:
  18. //
  19. //    CHESS is distributed in the hope that it will be useful, but WITHOUT ANY
  20. //    WARRANTY.  No author or distributor accepts responsibility to anyone for
  21. //    the consequences of using it or for whether it serves any particular
  22. //    purpose or works at all, unless he says so in writing.  Refer to the
  23. //    CHESS General Public License for full details.
  24. //
  25. //    Everyone is granted permission to copy, modify and redistribute CHESS,
  26. //    but only under the conditions described in the CHESS General Public
  27. //    License.  A copy of this license is supposed to have been given to you
  28. //    along with CHESS so you can know your rights and responsibilities.  It
  29. //    should be in a file named COPYING.  Among other things, the copyright
  30. //    notice and this notice must be preserved on all copies.
  31. */
  32.  
  33.  
  34. /*
  35. //  Define global defines.
  36. */
  37. #define MAX_PATH            260
  38.  
  39. #define BLACK   1
  40. #define WHITE   2
  41.  
  42. #define NETURAL 2
  43.  
  44. #define UM_EDITBOARD            (WM_USER+0)
  45. #define UM_USER_MOVE            (WM_USER+1)
  46. #define UM_COMPUTER_MOVE        (WM_USER+2)
  47. #define UM_USER_ENTERED_MOVE    (WM_USER+3)
  48. #define UM_UPDATE_MSG           (WM_USER+4)
  49. #define UM_NEW_GAME             (WM_USER+5)
  50.  
  51.  
  52. /*  Define global variables.*/
  53.  
  54. extern HAB  hab;                        /* Primary thread anchor block.*/
  55. extern HMQ  hmq;                        /* Message queue handle.*/
  56.  
  57. extern HWND hwndFrame;                  /* Frame window handle.*/
  58. extern HWND hwndClient;                 /* Client window handle.*/
  59. extern HPS  hpsClient;                  /* Presentation space of Client window.*/
  60. extern HWND hwndMenu;                   /* Menu window handle.*/
  61. extern HWND hStats;                     /* Stats handle.*/
  62.  
  63.  
  64. extern char szAppName[];                /* Application name.*/
  65.  
  66. extern short boarddraw[64]; /* Display copies of the board */
  67. extern short colordraw[64]; /* Needed because while computer is calculating*/
  68.                             /* moves it updates board and color thus you can*/
  69.                             /* not repaint the screen accuratly */
  70.