#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_CHANGE_OF_HIT 10
#define CAPORALE_LOW_HEALTH_THRESHOLD 0.9
#define CAPORALE_LOW_HEALTH_BULLET_DAMAGE 0.02

typedef struct Caporale {
	EntityFlyToPointInfo flyToPlayer;
	double timeSinceLastShot;
} Caporale;

void initCaporale(Entity * entity, Game * game);
void closeCaporale(Entity * entity);
void updateCaporale(Game * game, Entity * entity);
void drawCaporale(Game * game, Entity * entity);

#endif