]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - monop/deck.h
I wish the socket API didn't require casts. Easy to mess them up.
[bsdgames-darwin.git] / monop / deck.h
index 93b9c0bb82f03dc9ab478d0278760f5a66caa434..7e3f19158757faa8fd0bc46b1ef9908ad04c289f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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
@@ -35,6 +35,8 @@
 
 #define        bool    char
 
+struct cardinfo; /* private to cards.c */
+
 #define        CC_D    deck[0]
 #define        CH_D    deck[1]
 
@@ -42,7 +44,15 @@ struct dk_st {                       /* deck description structure           */
        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 *);
+