back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/pac.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-04-07 03:07:42 +0300
committerscratko <m@scratko.xyz>2024-04-07 03:07:42 +0300
commit2c2448cc94b8f17ac699814a75110411d57f3bea (patch)
tree4107fa66264cda94dd01c3bb00da29945c8d6131 /pac.h
parentbdee2852c13f6b02ec5207ded584839a3118233e (diff)
downloadpacman-2c2448cc94b8f17ac699814a75110411d57f3bea.tar.gz
pacman-2c2448cc94b8f17ac699814a75110411d57f3bea.tar.bz2
pacman-2c2448cc94b8f17ac699814a75110411d57f3bea.zip
BFS, queue files
Fixed remaining direction check for pacman (old version was commented out). Breadth First Search for red ghost. Changed switch style.
Diffstat (limited to 'pac.h')
-rw-r--r--pac.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pac.h b/pac.h
index 1125694..e3c5ffa 100644
--- a/pac.h
+++ b/pac.h
@@ -3,7 +3,7 @@
#include "ghosts.h"
-enum {
+enum {
max_live = 3,
pac_y = 22,
pac_x = 14
@@ -18,10 +18,10 @@ struct pacman {
void initialize_pac(struct pacman *pac);
-void change_pac_direction(game_space field, struct pacman *pac, int key,
+void change_pac_direction(game_space field, struct pacman *pac, int key,
enum movement_direction *stored_direction);
-void check_remaining_direction(game_space field, struct pacman *pac,
+void check_remaining_direction(game_space field, struct pacman *pac,
enum movement_direction *stored_direction);
void make_pac_move(game_space field, struct pacman *pac);