home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / audio / mcipuzzl / puzzle.h < prev    next >
Text File  |  1997-10-05  |  859b  |  25 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *  Copyright (C) 1992 - 1997 Microsoft Corporation.  All Rights Reserved.
  9.  *
  10.  **************************************************************************/
  11.  
  12. #define PSIZE   4       // Puzzle is 4x4
  13.  
  14. typedef struct {
  15.     int a[PSIZE][PSIZE];        // square # at position [x][y]
  16.     int hx;                     // coordinates of "hole"
  17.     int hy;
  18. } PUZZLE;
  19.  
  20. typedef PUZZLE * LPPUZZLE;
  21.  
  22. void InitPuzzle(LPPUZZLE, BOOL);
  23. void ClickPuzzle(LPPUZZLE, int, int);
  24. void MixPicture(LPPUZZLE, LPBITMAPINFOHEADER, LPBYTE, LPBYTE);
  25.