aboutsummaryrefslogtreecommitdiff
path: root/src/entities/generale.h
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-08-04 14:58:45 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-08-04 14:58:45 -0600
commit6411d4eabe48104211be728663afb146dbd12711 (patch)
treed05676d1f6793bcc201c7baae59da464c45b1bb0 /src/entities/generale.h
parent2849ccc2afcf89c46a9471b787b1ab14959637ae (diff)
Started working on generale
Diffstat (limited to 'src/entities/generale.h')
-rw-r--r--src/entities/generale.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/entities/generale.h b/src/entities/generale.h
index 12b1ccb..2266e98 100644
--- a/src/entities/generale.h
+++ b/src/entities/generale.h
@@ -4,9 +4,24 @@
#ifndef GENERALE_H
#define GENERALE_H
+#define GENERALE_ZIGZAG_SIZE 10.0
+
+typedef enum GeneraleZigZag {
+ GENERALE_ZIG,
+ GENERALE_ZAG
+} GeneraleZigZag;
+
+typedef struct Generale {
+ EntityFlyToPointInfo flyToPoint;
+ GeneraleZigZag zigzag;
+ Vector3 target;
+} Generale;
+
void initGenerale(Entity * entity, Game * game);
void closeGenerale(Entity * entity);
void updateGenerale(Game * game, Entity * entity);
void drawGenerale(Game * game, Entity * entity);
+void getTargetGenerale(Game * game, Entity * entity);
+
#endif