summaryrefslogtreecommitdiffstats
path: root/monop
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-19 10:46:21 +0000
committerdholland <dholland@NetBSD.org>2008-02-19 10:46:21 +0000
commit339a1bb42582cb9e3f1937dae87a710ddc986b93 (patch)
treeaa6c01ec4ff388f5ff8c5e698195e2c65371fcdc /monop
parent360f38c761c19369bd6476bb7558d9b9113c4abf (diff)
downloadbsdgames-darwin-339a1bb42582cb9e3f1937dae87a710ddc986b93.tar.gz
bsdgames-darwin-339a1bb42582cb9e3f1937dae87a710ddc986b93.tar.zst
bsdgames-darwin-339a1bb42582cb9e3f1937dae87a710ddc986b93.zip
Move function heading comments to something vaguely like the right place.
Diffstat (limited to 'monop')
-rw-r--r--monop/spec.c29
1 files changed, 22 insertions, 7 deletions
diff --git a/monop/spec.c b/monop/spec.c
index 604dc175..d562bb59 100644
--- a/monop/spec.c
+++ b/monop/spec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: spec.c,v 1.7 2003/08/07 09:37:30 agc Exp $ */
+/* $NetBSD: spec.c,v 1.8 2008/02/19 10:46:21 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: spec.c,v 1.7 2003/08/07 09:37:30 agc Exp $");
+__RCSID("$NetBSD: spec.c,v 1.8 2008/02/19 10:46:21 dholland Exp $");
#endif
#endif /* not lint */
@@ -44,9 +44,12 @@ static const char *const perc[] = {
"10%", "ten percent", "%", "$200", "200", 0
};
+/*
+ * collect income tax
+ */
void
inc_tax()
-{ /* collect income tax */
+{
int worth, com_num;
com_num = getinp("Do you wish to lose 10%% of your total worth or "
@@ -73,27 +76,39 @@ inc_tax()
lucky("\nIt makes no difference! ");
}
+/*
+ * move player to jail
+ */
void
goto_jail()
-{ /* move player to jail */
+{
cur_p->loc = JAIL;
}
+/*
+ * landing on luxury tax
+ */
void
lux_tax()
-{ /* landing on luxury tax */
+{
printf("You lose $75\n");
cur_p->money -= 75;
}
+/*
+ * draw community chest card
+ */
void
cc()
-{ /* draw community chest card */
+{
get_card(&CC_D);
}
+/*
+ * draw chance card
+ */
void
chance()
-{ /* draw chance card */
+{
get_card(&CH_D);
}