diff options
Diffstat (limited to 'Oscillating.h')
-rw-r--r-- | Oscillating.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Oscillating.h b/Oscillating.h index d596e0f..82b5641 100644 --- a/Oscillating.h +++ b/Oscillating.h @@ -1,18 +1,20 @@ #pragma once +#include <memory> + #include <raylib.h> #include "Behaviour.h" -#include "Generator.h" class Oscillating : virtual public Behaviour { public: - Oscillating(); - void update(float dt, Vector2& position, Generator& generator) override; - void set_phase(float phase); + friend class EnemyFactory; + explicit Oscillating(std::shared_ptr<Vector2> position); + void update(float dt) override; private: float m_phase; float m_shift; + std::shared_ptr<Vector2> m_position; }; |