1 /* $Id: card.h,v 1.1.1.1 1997/02/21 21:04:17 sverrehu Exp $ */
2 #ifndef CARD_H
3 #define CARD_H
4 
5 struct pile;
6 
7 typedef struct card {
8     int  suit;           /* CARD_CLUBS, _DIAMONDS, _HEARTS, _SPADES */
9     int  value;          /* 1 to 13 */
10     int  frontUp;        /* is the front (face) visible? */
11     struct pile *pile;   /* pile of which this card is a member */
12     struct card *next;   /* next in pile (towards the top) */
13     struct card *prev;   /* previous in pile (towards the bottom) */
14 } Card;
15 
16 Card *cardNew(void);
17 void  cardDelete(Card *c);
18 
19 #endif
20