summaryrefslogtreecommitdiffstats
path: root/hacks/pacman_level.h
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/pacman_level.h')
-rw-r--r--hacks/pacman_level.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/hacks/pacman_level.h b/hacks/pacman_level.h
new file mode 100644
index 0000000..0eccc33
--- /dev/null
+++ b/hacks/pacman_level.h
@@ -0,0 +1,33 @@
+/*-
+ * Copyright (c) 2002 by Edwin de Jong <mauddib@gmx.net>.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted,
+ * provided that the above copyright notice appear in all copies and that
+ * both that copyright notice and this permission notice appear in
+ * supporting documentation.
+ *
+ * This file is provided AS IS with no warranties of any kind. The author
+ * shall have no liability with respect to the infringement of copyrights,
+ * trade secrets or any patents by this file or any part thereof. In no
+ * event will the author be liable for any lost revenue or profits or
+ * other special, indirect and consequential damages.
+ */
+
+#ifndef __PACMAN_LEVEL_H__
+#define __PACMAN_LEVEL_H__
+
+/* typedef struct { */
+/* int x, y; */
+/* } XY; */
+
+extern int pacman_createnewlevel (pacmangamestruct *);
+extern int pacman_check_pos (pacmangamestruct *, int y, int x, int ghostpass);
+extern int pacman_check_dot (pacmangamestruct *,
+ unsigned int x, unsigned int y);
+extern int pacman_is_bonus_dot (pacmangamestruct *, int x, int y, int *idx);
+extern int pacman_bonus_dot_eaten (pacmangamestruct *, int idx);
+extern void pacman_eat_bonus_dot (pacmangamestruct *, int idx);
+extern void pacman_bonus_dot_pos (pacmangamestruct *, int idx, int *x, int *y);
+extern void pacman_get_jail_opening (int *x, int *y);
+#endif /* __PACMAN_LEVEL_H__ */