diff options
author | scratko <m@scratko.xyz> | 2024-04-18 20:05:03 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-04-18 20:05:03 +0300 |
commit | 29afbdf8e26f741ac1d090f2e7704093253f17fc (patch) | |
tree | 453dff441936bf712aaa72d27b62f5ca5d0f1bbf /field.h | |
parent | ef3844bf2128fa82f20c5995d1fca66fadba2ce3 (diff) | |
download | pacman-29afbdf8e26f741ac1d090f2e7704093253f17fc.tar.gz pacman-29afbdf8e26f741ac1d090f2e7704093253f17fc.tar.bz2 pacman-29afbdf8e26f741ac1d090f2e7704093253f17fc.zip |
Release version
Diffstat (limited to 'field.h')
-rw-r--r-- | field.h | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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); |