aboutsummaryrefslogtreecommitdiff
path: root/src/entities/antifaShip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/antifaShip.h')
-rw-r--r--src/entities/antifaShip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/entities/antifaShip.h b/src/entities/antifaShip.h
index e9c78bd..460fe38 100644
--- a/src/entities/antifaShip.h
+++ b/src/entities/antifaShip.h
@@ -1,15 +1,20 @@
#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;
} AntifaShip;
void initAntifaShip(Entity * entity, Game * game);