From 155a3c5f91c7a3bd89febfeb9927478961f5ee28 Mon Sep 17 00:00:00 2001 From: scratko Date: Sun, 7 Apr 2024 22:40:47 +0300 Subject: Tracking coins eaten The initialization of ncurses parameters and ghosts was put into functions. The order of movements has been changed: now pacman moves first. Accounting for eaten coins. Correct coin erasure. --- ghosts.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ghosts.h') diff --git a/ghosts.h b/ghosts.h index 08c2367..7830a97 100644 --- a/ghosts.h +++ b/ghosts.h @@ -47,11 +47,13 @@ void pull_out_ghosts(int *get_out_stage, struct ghost_type *blue_ghost, struct ghost_type *orange_ghost); +struct queue; void make_ghost_moves(game_space field, struct ghost_type *red_ghost, struct ghost_type *pink_ghost, struct ghost_type *blue_ghost, - struct ghost_type *orange_ghost); + struct ghost_type *orange_ghost, + struct queue *eaten_coins); struct pacman; void redirect(game_space field, enum intersection_type paths, -- cgit v1.2.3