back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/ghosts.h
diff options
context:
space:
mode:
Diffstat (limited to 'ghosts.h')
-rw-r--r--ghosts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ghosts.h b/ghosts.h
index 3eb58f7..ff8eb75 100644
--- a/ghosts.h
+++ b/ghosts.h
@@ -63,6 +63,7 @@ struct ghost_type {
enum movement_direction direction;
struct prison prison_params;
struct capture capture_info;
+ int reached_pacman;
};
void initialize_ghost(struct ghost_type *ghost, enum ghost_color color);
@@ -74,6 +75,12 @@ void pull_out_ghosts(int *get_out_stage,
struct ghost_type *orange_ghost);
struct queue;
+void clear_ghost_positions(game_space field, const struct queue *eaten_coins,
+ const struct ghost_type *red_ghost,
+ const struct ghost_type *pink_ghost,
+ const struct ghost_type *blue_ghost,
+ const struct ghost_type *orange_ghost);
+
void make_ghost_moves(game_space field,
struct ghost_type *red_ghost,
struct ghost_type *pink_ghost,