back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/field.h
diff options
context:
space:
mode:
Diffstat (limited to 'field.h')
-rw-r--r--field.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/field.h b/field.h
index c527309..728d75a 100644
--- a/field.h
+++ b/field.h
@@ -37,14 +37,17 @@ struct free_directions {
void print_field(game_space field);
-void display_character(int y, int x, enum select_character symbol);
+void display_character(int y, int x, int symbol, int prison_status);
struct ghost_type;
void display_ghosts_on_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,
+ int frightened_counter);
void display_score(int value);
+void display_ready();
+
struct coordinates;
void display_hit(struct coordinates pac_position,
const struct ghost_type *red_ghost,
@@ -57,6 +60,10 @@ void clear_or_revert_symbol(game_space field, struct coordinates position,
enum select_character character,
const struct queue *eaten_coins);
+void clear_energizer(game_space field, struct coordinates point);
+void clear_field(game_space *field);
+void clear_ready();
+
enum intersection_type get_intersection(const game_space field,
struct ghost_type *ghost);
@@ -72,13 +79,9 @@ int field_has_energizer(const game_space field, int x, int y);
void change_point_if_outside_tunnel(struct coordinates *point);
-void clear_energizer(game_space field, struct coordinates point);
-
int is_equal_points(struct coordinates first_point, struct coordinates
second_point);
-void clear_field(game_space field);
-
void erase_life(int value);
void erase_hit(struct coordinates point);