summaryrefslogtreecommitdiff
path: root/include/configs.h
diff options
context:
space:
mode:
authorBradley Smith2008-01-21 00:16:45 +0000
committerBradley Smith2008-01-21 00:16:45 +0000
commite6e7222d5a730368ed4e84c2e0f55427460e5230 (patch)
treee608410401099ccebe7ffa21de9336d78c78efc9 /include/configs.h
downloadgnurobots-e6e7222d5a730368ed4e84c2e0f55427460e5230.tar.gz
Imported GNU robots from CVS.
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
Diffstat (limited to 'include/configs.h')
-rw-r--r--include/configs.h63
1 files changed, 63 insertions, 0 deletions
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 <jhall1@isd.net>"
+
+#endif /* CONFIGS_H */