-/* $NetBSD: move.c,v 1.11 2008/01/14 03:50:02 dholland Exp $ */
+/* $NetBSD: move.c,v 1.13 2011/05/23 23:01:17 joerg Exp $ */
/*
* Copyright (c) 1988, 1993
#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.13 2011/05/23 23:01:17 joerg Exp $");
#endif
#endif /* not lint */
short m_moves = 0;
boolean jump = 0;
-const char *you_can_move_again = "you can move again";
+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)
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;
return(1);
}
-boolean
+static boolean
check_hunger(boolean msg_only)
{
short i, n;
mv_mons();
}
}
- messagef(1, you_can_move_again);
+ messagef(1, "%s", you_can_move_again);
}
}
if (msg_only) {
}
}
-char
+static char
gr_dir(void)
{
short d;
return(d);
}
-void
+static void
heal(void)
{
static short heal_exp = -1, n, c = 0;
}
}
-boolean
+static boolean
can_turn(short nrow, short ncol)
{
if ((dungeon[nrow][ncol] & TUNNEL) && is_passable(nrow, ncol)) {
return(0);
}
-void
+static void
turn_passage(short dir, boolean fast)
{
short crow = rogue.row, ccol = rogue.col, turns = 0;