}
void
-get_jail_opening ( int *x, int *y)
+pacman_get_jail_opening ( int *x, int *y)
{
int xstart = LEVWIDTH / 2 - JAILWIDTH / 2;
int ystart = LEVHEIGHT / 2 - JAILHEIGHT / 2;
}
int
-is_bonus_dot (pacmangamestruct *pp, int x, int y, int *idx)
+pacman_is_bonus_dot (pacmangamestruct *pp, int x, int y, int *idx)
{
int ret = False;
int i;
}
int
-bonus_dot_eaten (pacmangamestruct *pp, int idx)
+pacman_bonus_dot_eaten (pacmangamestruct *pp, int idx)
{
check_bonus_idx (idx);
return pp->bonus_dots[idx].eaten;
}
void
-eat_bonus_dot (pacmangamestruct *pp, int idx)
+pacman_eat_bonus_dot (pacmangamestruct *pp, int idx)
{
check_bonus_idx (idx);
pp->bonus_dots[idx].eaten = True;
}
void
-bonus_dot_pos (pacmangamestruct *pp, int idx, int *x, int *y)
+pacman_bonus_dot_pos (pacmangamestruct *pp, int idx, int *x, int *y)
{
check_bonus_idx (idx);
*x = pp->bonus_dots[idx].x;
for (x = 0; x < LEVWIDTH; x++) {
if (checkset (level, x, y) == 0) {
- if (is_bonus_dot (pp, x, y, &idx)) {
+ if (pacman_is_bonus_dot (pp, x, y, &idx)) {
frmtlev[y][x] = BLOCK_DOT_BONUS;
}
else {
/* Creates a new level, and places that in the pacmangamestruct. */
int
-createnewlevel (pacmangamestruct *pp)
+pacman_createnewlevel (pacmangamestruct *pp)
{
lev_t *level;
unsigned dirvec[1] = { GO_UP };
/* Checks if a position is allowable for ghosts/pacs to enter. */
int
-check_pos (pacmangamestruct * pp, int y, int x, int ghostpass)
+pacman_check_pos (pacmangamestruct * pp, int y, int x, int ghostpass)
{
if ((pp->level[y * LEVWIDTH + x] == BLOCK_DOT_2) ||
(pp->level[y * LEVWIDTH + x] == BLOCK_EMPTY) ||
/* Checks if there is a dot on the specified position in the level. */
int
-check_dot (pacmangamestruct * pp, unsigned int x, unsigned int y)
+pacman_check_dot (pacmangamestruct * pp, unsigned int x, unsigned int y)
{
if (x >= LEVWIDTH || y >= LEVHEIGHT)
return 0;