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