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 >
Wrap
Text File
|
1997-10-05
|
859b
|
25 lines
/**************************************************************************
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*
* Copyright (C) 1992 - 1997 Microsoft Corporation. All Rights Reserved.
*
**************************************************************************/
#define PSIZE 4 // Puzzle is 4x4
typedef struct {
int a[PSIZE][PSIZE]; // square # at position [x][y]
int hx; // coordinates of "hole"
int hy;
} PUZZLE;
typedef PUZZLE * LPPUZZLE;
void InitPuzzle(LPPUZZLE, BOOL);
void ClickPuzzle(LPPUZZLE, int, int);
void MixPicture(LPPUZZLE, LPBITMAPINFOHEADER, LPBYTE, LPBYTE);