- Update to r53061
[reactos.git] / base / applications / games / spider / spider.h
1
2 #include <windows.h>
3 #include <commctrl.h>
4 #include <tchar.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include "resource.h"
8 #include "cardlib.h"
9
10
11 #define DIFFICULTY_ONE_COLOR 1
12 #define DIFFICULTY_TWO_COLORS 2
13 #define DIFFICULTY_FOUR_COLORS 3
14 #define CARDBACK_START IDC_CARDBACK1
15 #define CARDBACK_END IDC_CARDBACK12
16 #define NUM_CARDBACKS (CARDBACK_END - CARDBACK_START + 1)
17 #define CARDBACK_RES_START 53
18 /* Display option cards with half the size */
19 #define CARDBACK_OPTIONS_WIDTH 36
20 #define CARDBACK_OPTIONS_HEIGHT 48
21
22 #define X_BORDER 6
23 #define Y_BORDER 12
24
25 #define NUM_STACKS 10
26
27 extern HWND hwndMain;
28 extern CardWindow SpiderWnd;
29 extern TCHAR szAppName[];
30 extern bool fGameStarted;
31 extern int yRowStackCardOffset;
32 extern DWORD dwDifficulty;
33 extern TCHAR MsgDeal[];
34 extern TCHAR MsgWin[];
35
36 void CreateSpider(void);
37 void NewGame(void);
38
39 bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards);
40 bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, const CardStack &dragcards);
41
42 void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked);
43
44 void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked);
45 void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
46
47 void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);