summaryrefslogtreecommitdiff
path: root/include/zombies.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/zombies.h')
-rw-r--r--include/zombies.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/zombies.h b/include/zombies.h
index 44b2956..a8a58fe 100644
--- a/include/zombies.h
+++ b/include/zombies.h
@@ -5,12 +5,17 @@
#include "players.h"
#include "objects.h"
+#include "pathfinding.h"
typedef struct t_zombie {
bool alive;
float health;
vec3f position;
vec3f size;
+ array path;
+ array next_path;
+ float time_since_last_path;
+ pathfinding_request request;
} zombie;
typedef struct t_spawner {
@@ -20,11 +25,10 @@ typedef struct t_spawner {
// data data that is stored on disk
spawner spawner_tiles[2] = {
- {9, 0, 0},
- {1, 8, 0},
+ {15, 5, 999},
+ {3, 8, 999},
};
-
zombie zombies[50] = {0};
int max_zombies = 50;