aboutsummaryrefslogtreecommitdiff
path: root/src/entities/caporale.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/caporale.h')
-rw-r--r--src/entities/caporale.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/entities/caporale.h b/src/entities/caporale.h
index e855b30..3999436 100644
--- a/src/entities/caporale.h
+++ b/src/entities/caporale.h
@@ -1,11 +1,29 @@
#include "gameCommon.h"
#include "entity.h"
+#include "PID.h"
+#include <raylib.h>
#ifndef CAPORALE_H
#define CAPORALE_H
+#define CAPORALE_COOLDOWN 0.5
+#define CAPORALE_BULLET_DAMAGE 0.01
+#define CAPORALE_TARGET_POINTER_DIS 10.0
+
typedef struct Caporale {
EntityFlyToPointInfo flyToPlayer;
+ double timeSinceLastShot;
+
+ bool initTarget;
+ Vector3 targetSetpoint;
+ Vector3 target;
+ Vector3 targetVelocity;
+
+ PID aimXPID;
+ PID aimYPID;
+ PID aimZPID;
+
+ Ray ray;
} Caporale;
void initCaporale(Entity * entity, Game * game);