2014-02-03 16:13:37 +00:00
|
|
|
#ifndef _SPIDER_PCH_
|
|
|
|
#define _SPIDER_PCH_
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <cardlib.h>
|
2011-07-25 23:50:18 +00:00
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include "resource.h"
|
2009-10-11 12:07:11 +00:00
|
|
|
|
|
|
|
#define DIFFICULTY_ONE_COLOR 1
|
|
|
|
#define DIFFICULTY_TWO_COLORS 2
|
|
|
|
#define DIFFICULTY_FOUR_COLORS 3
|
|
|
|
#define CARDBACK_START IDC_CARDBACK1
|
2009-10-12 18:52:44 +00:00
|
|
|
#define CARDBACK_END IDC_CARDBACK12
|
2009-10-11 12:07:11 +00:00
|
|
|
#define NUM_CARDBACKS (CARDBACK_END - CARDBACK_START + 1)
|
|
|
|
#define CARDBACK_RES_START 53
|
2014-07-30 13:07:49 +00:00
|
|
|
#define CARDBACK_OPTIONS_WIDTH 72
|
|
|
|
#define CARDBACK_OPTIONS_HEIGHT 112
|
2009-10-11 12:07:11 +00:00
|
|
|
|
2014-08-06 12:13:45 +00:00
|
|
|
#define X_BORDER 5
|
|
|
|
#define Y_BORDER 5
|
2009-10-11 12:07:11 +00:00
|
|
|
|
|
|
|
#define NUM_STACKS 10
|
|
|
|
|
|
|
|
extern HWND hwndMain;
|
|
|
|
extern CardWindow SpiderWnd;
|
|
|
|
extern TCHAR szAppName[];
|
|
|
|
extern bool fGameStarted;
|
|
|
|
extern int yRowStackCardOffset;
|
|
|
|
extern DWORD dwDifficulty;
|
|
|
|
extern TCHAR MsgDeal[];
|
|
|
|
extern TCHAR MsgWin[];
|
|
|
|
|
2011-03-12 19:03:27 +00:00
|
|
|
void CreateSpider(void);
|
2009-10-11 12:07:11 +00:00
|
|
|
void NewGame(void);
|
|
|
|
|
|
|
|
bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards);
|
|
|
|
bool CARDLIBPROC RowStackDropProc(CardRegion &stackobj, const CardStack &dragcards);
|
|
|
|
|
|
|
|
void CARDLIBPROC RowStackClickProc(CardRegion &stackobj, int iNumClicked);
|
|
|
|
|
|
|
|
void CARDLIBPROC DeckClickProc(CardRegion &stackobj, int iNumClicked);
|
|
|
|
void CARDLIBPROC PileDblClickProc(CardRegion &stackobj, int iNumClicked);
|
|
|
|
|
|
|
|
void CARDLIBPROC PileRemoveProc(CardRegion &stackobj, int iRemoved);
|
2014-02-03 16:13:37 +00:00
|
|
|
|
|
|
|
#endif /* _SPIDER_PCH_ */
|