-/* $NetBSD: deck.h,v 1.7 2008/02/23 19:49:21 dholland Exp $ */
+/* $NetBSD: deck.h,v 1.9 2008/02/24 02:43:18 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
#define bool char
+struct cardinfo; /* private to cards.c */
+
#define CC_D deck[0]
#define CH_D deck[1]
int num_cards; /* number of cards in deck */
int top_card; /* number of last card picked */
bool gojf_used; /* set if gojf card out of deck */
- off_t *offsets; /* offsets for start of cards */
+ int *cards; /* which cards (indexes info[]) */
+ const struct cardinfo *info; /* the static card data */
};
typedef struct dk_st DECK;
+
+extern DECK deck[2];
+
+/* cards.c */
+void init_decks(void);
+void get_card(DECK *);
+