summaryrefslogtreecommitdiffstats
path: root/rogue/move.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 08:44:45 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 08:44:45 +0000
commit39a1066cab493ece48c6e692513d1311b7e27c44 (patch)
treea896a49b2b5b09b9763d953ea2ce9ec0e813beb3 /rogue/move.c
parent4fa17c6f9afc7c76d0350d5d9e5996391aa18137 (diff)
downloadbsdgames-darwin-39a1066cab493ece48c6e692513d1311b7e27c44.tar.gz
bsdgames-darwin-39a1066cab493ece48c6e692513d1311b7e27c44.tar.zst
bsdgames-darwin-39a1066cab493ece48c6e692513d1311b7e27c44.zip
sprinkle static
Diffstat (limited to 'rogue/move.c')
-rw-r--r--rogue/move.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/rogue/move.c b/rogue/move.c
index 73a2ce0e..7d1c2ca1 100644
--- a/rogue/move.c
+++ b/rogue/move.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.11 2008/01/14 03:50:02 dholland Exp $ */
+/* $NetBSD: move.c,v 1.12 2009/08/12 08:44:45 dholland Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move.c,v 1.11 2008/01/14 03:50:02 dholland Exp $");
+__RCSID("$NetBSD: move.c,v 1.12 2009/08/12 08:44:45 dholland Exp $");
#endif
#endif /* not lint */
@@ -59,6 +59,13 @@ short m_moves = 0;
boolean jump = 0;
const char *you_can_move_again = "you can move again";
+static boolean can_turn(short, short);
+static boolean check_hunger(boolean);
+static char gr_dir(void);
+static void heal(void);
+static boolean next_to_something(int, int);
+static void turn_passage(short, boolean);
+
int
one_move_rogue(short dirch, short pickup)
{
@@ -231,7 +238,7 @@ is_passable(int row, int col)
return(dungeon[row][col] & (FLOOR | TUNNEL | DOOR | STAIRS | TRAP));
}
-boolean
+static boolean
next_to_something(int drow, int dcol)
{
short i, j, i_end, j_end, row, col;
@@ -364,7 +371,7 @@ is_direction(short c, short *d)
return(1);
}
-boolean
+static boolean
check_hunger(boolean msg_only)
{
short i, n;
@@ -504,7 +511,7 @@ rest(int count)
}
}
-char
+static char
gr_dir(void)
{
short d;
@@ -540,7 +547,7 @@ gr_dir(void)
return(d);
}
-void
+static void
heal(void)
{
static short heal_exp = -1, n, c = 0;
@@ -605,7 +612,7 @@ heal(void)
}
}
-boolean
+static boolean
can_turn(short nrow, short ncol)
{
if ((dungeon[nrow][ncol] & TUNNEL) && is_passable(nrow, ncol)) {
@@ -614,7 +621,7 @@ can_turn(short nrow, short ncol)
return(0);
}
-void
+static void
turn_passage(short dir, boolean fast)
{
short crow = rogue.row, ccol = rogue.col, turns = 0;