imported catch-22 sol clone with authors permission
[reactos.git] / rosapps / games / solitaire / solitaire.h
1 #ifndef SOLITAIRE_INCLUDED
2 #define SOLITAIRE_INCLUDED
3
4 extern CardWindow SolWnd;
5 extern TCHAR szAppName[];
6 extern bool fGameStarted;
7
8 void CreateSol();
9 void NewGame(void);
10
11 #define NUM_ROW_STACKS 7
12 #define DECK_ID 1
13 #define PILE_ID 2
14 #define SUIT_ID 4
15 #define ROW_ID 10
16
17 extern CardRegion *pDeck;
18 extern CardRegion *pPile;
19 extern CardRegion *pSuitStack[];
20 extern CardRegion *pRowStack[];
21
22
23 bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards);
24 bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, const CardStack &dragcards);
25
26 bool CARDLIBPROC SuitStackDropProc(CardRegion &stackobj, const CardStack &dragcards);
27 void CARDLIBPROC SuitStackAddProc(CardRegion &stackobj, const CardStack &added);
28
29 void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked);
30 void CARDLIBPROC RowStackDblClickProc(CardRegion &stackobj, int iNumClicked);
31
32 void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked);
33 void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
34
35 void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
36
37 #endif