ReactOS  0.4.12-dev-102-g4b7f1e0
spider.h
Go to the documentation of this file.
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_ */
bool fGameStarted
Definition: solgame.cpp:14
TCHAR szAppName[]
Definition: solitaire.cpp:16
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved)
Definition: solgame.cpp:456
TCHAR MsgWin[]
Definition: solitaire.cpp:21
DWORD dwDifficulty
Definition: spider.cpp:25
void CreateSpider(void)
Definition: spigame.cpp:279
bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, const CardStack &dragcards)
bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards)
Definition: solgame.cpp:101
HWND hwndMain
Definition: solitaire.cpp:12
void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:482
char TCHAR
Definition: xmlstorage.h:189
CardWindow SpiderWnd
Definition: spider.cpp:27
TCHAR MsgDeal[]
Definition: solitaire.cpp:22
unsigned long DWORD
Definition: ntddk_ex.h:95
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:443
int yRowStackCardOffset
Definition: solcreate.cpp:12
#define CARDLIBPROC
Definition: cardlib.h:13
void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked)
Definition: solgame.cpp:284
void NewGame(void)
Definition: solgame.cpp:17