mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
new upstream
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: auto.c,v 1.5 2002/01/31 17:35:52 christos Exp $ */
|
||||
/* $NetBSD: auto.c,v 1.6 2004/01/27 20:30:30 jsm Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@@ -67,16 +67,16 @@
|
||||
|
||||
#define CONSDEBUG(a)
|
||||
|
||||
static int distance __P((int, int, int, int));
|
||||
static int xinc __P((int));
|
||||
static int yinc __P((int));
|
||||
static const char *find_moves __P((void));
|
||||
static COORD *closest_robot __P((int *));
|
||||
static COORD *closest_heap __P((int *));
|
||||
static char move_towards __P((int, int));
|
||||
static char move_away __P((COORD *));
|
||||
static char move_between __P((COORD *, COORD *));
|
||||
static int between __P((COORD *, COORD *));
|
||||
static int distance(int, int, int, int);
|
||||
static int xinc(int);
|
||||
static int yinc(int);
|
||||
static const char *find_moves(void);
|
||||
static COORD *closest_robot(int *);
|
||||
static COORD *closest_heap(int *);
|
||||
static char move_towards(int, int);
|
||||
static char move_away(COORD *);
|
||||
static char move_between(COORD *, COORD *);
|
||||
static int between(COORD *, COORD *);
|
||||
|
||||
/* distance():
|
||||
* return "move" number distance of the two coordinates
|
||||
|
||||
Reference in New Issue
Block a user