From 339a1bb42582cb9e3f1937dae87a710ddc986b93 Mon Sep 17 00:00:00 2001 From: dholland Date: Tue, 19 Feb 2008 10:46:21 +0000 Subject: Move function heading comments to something vaguely like the right place. --- monop/spec.c | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) (limited to 'monop/spec.c') 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); } -- cgit v1.2.3-56-ge451