2 * Copyright (c) 2002 by Edwin de Jong <mauddib@gmx.net>.
4 * Permission to use, copy, modify, and distribute this software and its
5 * documentation for any purpose and without fee is hereby granted,
6 * provided that the above copyright notice appear in all copies and that
7 * both that copyright notice and this permission notice appear in
8 * supporting documentation.
10 * This file is provided AS IS with no warranties of any kind. The author
11 * shall have no liability with respect to the infringement of copyrights,
12 * trade secrets or any patents by this file or any part thereof. In no
13 * event will the author be liable for any lost revenue or profits or
14 * other special, indirect and consequential damages.
17 #ifndef __PACMAN_LEVEL_H__
18 #define __PACMAN_LEVEL_H__
20 /* typedef struct { */
24 extern int createnewlevel (pacmangamestruct *);
25 extern int check_pos (pacmangamestruct *, int y, int x, int ghostpass);
26 extern int check_dot (pacmangamestruct *, unsigned int x, unsigned int y);
27 extern int is_bonus_dot (pacmangamestruct *, int x, int y, int *idx);
28 extern int bonus_dot_eaten (pacmangamestruct *, int idx);
29 extern void eat_bonus_dot (pacmangamestruct *, int idx);
30 extern void bonus_dot_pos (pacmangamestruct *, int idx, int *x, int *y);
31 extern void get_jail_opening (int *x, int *y);
32 #endif /* __PACMAN_LEVEL_H__ */