summaryrefslogtreecommitdiff
path: root/Week1-Pacman/src/enemy.h
diff options
context:
space:
mode:
Diffstat (limited to 'Week1-Pacman/src/enemy.h')
-rw-r--r--Week1-Pacman/src/enemy.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Week1-Pacman/src/enemy.h b/Week1-Pacman/src/enemy.h
new file mode 100644
index 0000000..a82a58e
--- /dev/null
+++ b/Week1-Pacman/src/enemy.h
@@ -0,0 +1,25 @@
+#ifndef ENEMY_H_
+#define ENEMY_H_
+
+#include "facing.h"
+
+enum color {BLUE, RED, PINK, ORANGE};
+
+struct enemy_init {
+ int initial_xpos;
+ int initial_ypos;
+
+ enum facing initial_facing;
+ enum color initial_color;
+};
+
+struct enemy {
+ int xpos;
+ int ypos;
+
+ enum facing facing;
+};
+
+void init_enemy(struct enemy* enemy);
+
+#endif // ENEMY_H_