diff options
Diffstat (limited to 'ArcGenerator.h')
-rw-r--r-- | ArcGenerator.h | 31 |
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; +}; |