summaryrefslogtreecommitdiffhomepage
path: root/ArcGenerator.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-25 01:49:48 +0200
committerAki <please@ignore.pl>2022-04-25 01:49:48 +0200
commitc1c7fb82aed0c403865896a941388a9e2cc486d0 (patch)
tree7407e44a90d394bd285d5a02841188ed219a3267 /ArcGenerator.h
parent63c64254a80564e11987ba4af289cf8d47774668 (diff)
downloadbullethell2022-c1c7fb82aed0c403865896a941388a9e2cc486d0.zip
bullethell2022-c1c7fb82aed0c403865896a941388a9e2cc486d0.tar.gz
bullethell2022-c1c7fb82aed0c403865896a941388a9e2cc486d0.tar.bz2
Extended test staged with new enemies
Diffstat (limited to 'ArcGenerator.h')
-rw-r--r--ArcGenerator.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/ArcGenerator.h b/ArcGenerator.h
new file mode 100644
index 0000000..ae02040
--- /dev/null
+++ b/ArcGenerator.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <memory>
+
+#include <raylib.h>
+
+#include "ConstantVelocity.h"
+#include "Generator.h"
+
+
+class ArcGenerator : public Generator
+{
+public:
+ friend class EnemyFactory;
+ ArcGenerator(std::shared_ptr<Vector2> position, ConstantVelocityBullet::Vector& bullets);
+ void update(float dt) override;
+private:
+ std::shared_ptr<Vector2> m_position;
+ ConstantVelocityBullet::Vector& m_bullets;
+ float m_delay;
+ float m_interval;
+ float m_arc;
+ float m_angle;
+ float m_rotation;
+ float m_radius;
+ bool m_last;
+ int m_speed;
+ int m_shift;
+ int m_segments;
+ Color m_color;
+};