summaryrefslogtreecommitdiffhomepage
path: root/SpiralGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'SpiralGenerator.h')
-rw-r--r--SpiralGenerator.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/SpiralGenerator.h b/SpiralGenerator.h
new file mode 100644
index 0000000..25fe9ba
--- /dev/null
+++ b/SpiralGenerator.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <memory>
+
+#include <raylib.h>
+
+#include "Spiral.h"
+#include "Generator.h"
+
+
+class SpiralGenerator : public Generator
+{
+public:
+ friend class EnemyFactory;
+ SpiralGenerator(std::shared_ptr<Vector2> position, SpiralBullet::Vector& bullets);
+ void update(float dt) override;
+private:
+ std::shared_ptr<Vector2> m_position;
+ SpiralBullet::Vector& m_bullets;
+ float m_delay;
+ float m_interval;
+ int m_speed;
+ float m_angle;
+ float m_redirect;
+ float m_timer;
+ float m_redirect_time;
+ float m_redirect_decrease;
+ int m_segments;
+ Color m_color;
+};