aboutsummaryrefslogtreecommitdiff
path: root/src/entities/antifaShip.h
blob: c2728658259789b1e49a9d43b027f0afbc83e228 (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
#include "gameCommon.h"
#include "entity.h"
#include "bullets.h"

#ifndef ANTIFA_SHIP_H
#define ANTIFA_SHIP_H

#define ANTIFA_SHIP_MAX_SPEED 200.0
#define ANTIFA_BULLET_COOLDOWN 0.5
#define ANTIFA_DRAW_BULLET_FOR 0.05

typedef struct AntifaShip {
	Vector2 lastMouse;
	float forwardSpeed;
	bool shouldInitMousePosition;

	double timeSinceLastBullet;
	Bullet lastBulletShot;
	Vector3 gunTarget;
	bool doAutoTarget;
} AntifaShip;

void initAntifaShip(Entity * entity, Game * game);
void closeAntifaShip(Entity * entity);
void updateAntifaShip(Game * game, Entity * entity);
void drawAntifaShip(Game * game, Entity * entity);

#endif