/* $Id: card.h,v 1.1.1.1 1997/02/21 21:04:17 sverrehu Exp $ */ #ifndef CARD_H #define CARD_H struct pile; typedef struct card { int suit; /* CARD_CLUBS, _DIAMONDS, _HEARTS, _SPADES */ int value; /* 1 to 13 */ int frontUp; /* is the front (face) visible? */ struct pile *pile; /* pile of which this card is a member */ struct card *next; /* next in pile (towards the top) */ struct card *prev; /* previous in pile (towards the bottom) */ } Card; Card *cardNew(void); void cardDelete(Card *c); #endif