diff src/creep.h @ 14:5c7f33441e43

Creeps now move towards the goal
author Mike Pavone <pavone@retrodev.com>
date Sun, 12 Jan 2014 18:16:51 -0800
parents c0bb53eaa6f4
children a9500e8bff93
line wrap: on
line diff
--- a/src/creep.h	Sun Jan 12 17:19:42 2014 -0800
+++ b/src/creep.h	Sun Jan 12 18:16:51 2014 -0800
@@ -2,13 +2,15 @@
 #define CREEP_H_
 
 enum {
-	CREEP_NORMAL = 0
+	CREEP_NORMAL = 0,
+	NUM_SPECIES
 } creep_species;
 
 typedef struct {
 	u16  index;
 	u16  health;
-	u16  waypoint;
+	s16  targetx;
+	s16  targety;
 	u8   species;
 	u8   direction;
 } creep;
@@ -16,5 +18,8 @@
 #define MAX_CREEPS 40
 extern u16 cur_creeps;
 u16 spawn_creep(u8 species, s16 x, s16 y);
+void gen_distances(u16 x, u16 y);
+void print_distances(void);
+void update_creeps(void);
 
 #endif //CREEP_H_