aboutsummaryrefslogtreecommitdiff
path: root/src/entities/maresciallo.h
blob: 6413fdbe97670da10fca55a423fc42534a1f4280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "gameCommon.h"
#include "entity.h"

#ifndef MARESCIALLO_H
#define MARESCIALLO_H

#define MARESCIALLO_CIRCLE_AT_DIS 200.0 // 200.0
#define MARESCIALLO_COME_BACK_AT_DIS 250.0
#define MARESCIALLO_ROTATION_SPEED 20.0
#define MARESCIALLO_CIRCLE_PLAYER_SPEED 1.0

#define MARESCIALLO_BULLET_COOLDOWN 3.0
#define MARESCIALLO_BULLET_DAMAGE 0.01
#define MARESCIALLO_CHANGE_OF_HIT 10

#define MARESCIALLO_MISSILE_COOLDOWN 0.5

typedef struct Maresciallo {
	EntityFlyToPointInfo flyToPoint;
	double timeSinceLastBulletShot;
	double timeSinceLastMissileShot;
} Maresciallo;

void initMaresciallo(Entity * entity, Game * game);
void closeMaresciallo(Entity * entity);
void updateMaresciallo(Game * game, Entity * entity);
void drawMaresciallo(Game * game, Entity * entity);

#endif