-/* $NetBSD: monop.h,v 1.14 2008/02/20 04:10:34 dholland Exp $ */
+/* $NetBSD: monop.h,v 1.19 2009/08/12 08:10:49 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
#define N_SQRS 40 /* number of squares on board */
#define MAX_PL 9 /* maximum number of players */
#define MAX_PRP (N_PROP+N_RR+N_UTIL) /* max # ownable property */
+#define N_HOUSE 32 /* total number of houses available */
+#define N_HOTEL 12 /* total number of hotels available */
/* square type numbers */
#define PRPTY 0 /* normal property */
#define lucky(str) printf("%s%s\n",str,lucky_mes[roll(1,num_luck)-1])
#define printline() printf("------------------------------\n")
-#define sqnum(sqp) (sqp - board)
+#define sqnum(sqp) ((short)(sqp - board))
struct sqr_st { /* structure for square */
const char *name; /* place name */
typedef struct prp_st RR_S;
typedef struct prp_st UTIL_S;
+extern bool trading, spec, fixing, told_em;
+
+extern const char *const yncoms[], *name_list[], *const lucky_mes[];
+
+extern int num_play, player, num_doub, num_luck;
+
+extern void (*const func[])(void);
+
+/*extern MON mon[N_MON];*/
+
+extern PLAY *play, *cur_p;
+
+extern PROP prop[N_PROP];
+
+/*extern RR_S rr[N_RR];*/
+
+extern SQUARE board[N_SQRS + 1];
+
+/*extern UTIL_S util[2];*/
+
/* cards.c */
-void init_decks(void);
-void get_card(DECK *);
+void ret_card(PLAY *);
/* execute.c */
void execute(int);
/* jail.c */
void card(void);
-void ret_card(PLAY *);
void pay(void);
int move_jail(int, int );
void printturn(void);
void next_play(void);
int get_int(const char *);
void set_ownlist(int);
-void is_monop(MON *, int);
void is_not_monop(MON *);
void list(void);
void list_all(void);