aboutsummaryrefslogtreecommitdiff
path: root/src/entities/caporale.h
blob: effba167a182657e3de5eae4e0f3067ecb97799e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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

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