From e6e7222d5a730368ed4e84c2e0f55427460e5230 Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Mon, 21 Jan 2008 00:16:45 +0000 Subject: Imported GNU robots from CVS. Signed-off-by: Bradley Smith --- include/configs.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 include/configs.h (limited to 'include/configs.h') diff --git a/include/configs.h b/include/configs.h new file mode 100644 index 0000000..b3d5125 --- /dev/null +++ b/include/configs.h @@ -0,0 +1,63 @@ +#ifndef CONFIGS_H +#define CONFIGS_H + +#define TILE_SIZE 16 +#undef USE_MITSHM + +#ifdef PKGLIBDIR +#define MODULE_PATH PKGLIBDIR +#else +#ifdef ABS_TOP_BUILDDIR +#define MODULE_PATH ABS_TOP_BUILDDIR "/lib/.libs" +#else +#define MODULE_PATH "lib/.libs" +#endif /* ABS_TOP_BUILDDIR */ +#endif /* PKGLIBDIR */ + +#ifndef MODULE_PATH_ENV +# define MODULE_PATH_ENV "GNU_ROBOTS_PLUGIN_PATH" +#endif + +#ifndef MAPS_PATH_ENV +# define MAPS_PATH_ENV "GNU_ROBOTS_MAPS_PATH" +#endif + +#ifndef SCRIPTS_PATH_ENV +# define SCRIPTS_PATH_ENV "GNU_ROBOTS_SCRIPTS_PATH" +#endif + +#define MAX_PATH 256 + +/* Defaults */ +#define DEFAULT_MAP "maze.map" +#define DEFAULT_SCRIPT "mapper.scm" + +/* Symbolic constants */ +#define SPACE ' ' +#define FOOD '+' +#define PRIZE '$' +#define WALL '#' +#define BADDIE '@' +#define ROBOT 'R' + +/* Directions */ +#define NORTH 0 +#define EAST 1 +#define SOUTH 2 +#define WEST 3 + +/* For all displays */ +#define SLEEP_TIME 200 /* in milliseconds */ +#define USLEEP_TIME 200000 /* in microseconds */ +#define USLEEP_MULT 16 /* not used yet --jh */ + +#define DEFAULT_ENERGY 1000 +#define DEFAULT_SHIELDS 100 + +#define DEFAULT_MAP_COLUMNS 40 +#define DEFAULT_MAP_ROWS 20 + +#define PKGINFO PACKAGE_NAME " " VERSION +#define COPYRIGHT "Copyright (C) 1998,1999,2000 Jim Hall " + +#endif /* CONFIGS_H */ -- cgit v1.1