#include "gameCommon.h" #include "entity.h" #include "PID.h" #include #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); void closeCaporale(Entity * entity); void updateCaporale(Game * game, Entity * entity); void drawCaporale(Game * game, Entity * entity); #endif