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