1 /* $Id: board.h,v 1.3 1997/02/23 19:38:33 sverrehu Exp $ */
2 #ifndef BOARD_H
3 #define BOARD_H
4 
5 #include <shhcards.h>
6 
7 #include "pile.h"
8 #include "card.h"
9 
10 #define CARD_SEP_X 10
11 #define CARD_SEP_Y 10
12 #define CARD_SHOW_X (CARD_WIDTH / 5)
13 #define CARD_SHOW_Y (CARD_HEIGHT / 6)
14 
15 #define BOARD_BACKGROUND_COLOR "dark olive green"
16 
17 void boardInit(void);
18 void boardFinish(void);
19 void boardInitGame(void);
20 void boardFinishGame(void);
21 void boardHandleEvent(XEvent *evt);
22 void boardHandlePopupEvent(XEvent *evt);
23 void boardDrawPile(Pile *p, int popup);
24 void boardUpdatePileCache(Pile *p);
25 void boardStartDragCardAndAbove(Card *c);
26 void boardStopDrag(void);
27 void boardShowText(const char *s);
28 
29 extern Window  boardWin;
30 extern Window  boardPopup;
31 extern int     boardWidth, boardHeight;
32 extern int     boardCardBackground;
33 
34 #endif
35