From fd9232b3d3a3aee28a5965a5ebc4077f8db7c652 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 20 Apr 2022 00:28:48 +0200 Subject: Streamlined enemy composition --- Falling.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Falling.h') diff --git a/Falling.h b/Falling.h index b629d6d..b50228a 100644 --- a/Falling.h +++ b/Falling.h @@ -1,5 +1,7 @@ #pragma once +#include + #include #include "Behaviour.h" @@ -9,8 +11,10 @@ class Falling : virtual public Behaviour { public: - Falling(); - void update(float dt, Vector2& position, Generator& generator) override; + Falling(std::shared_ptr position, std::shared_ptr generator); + void update(float dt) override; private: float m_speed; + std::shared_ptr m_position; + std::shared_ptr m_generator; }; -- cgit v1.1