class Static_obejct : public Object
{
public:
- {
- Static_object() = default;
- virtual ~Static_object() = default;
- virtual bool collides(Object & other) = 0;
- virtual void collision(Object & other) = 0;
- virtual void update() = 0;
- virtual void render(sf::RenderWindow & window) = 0;
- }
+ Static_object() = default;
+ virtual ~Static_object() = default;
+ virtual bool collides(Object &other) = 0;
+ virtual void collision(Object &other) = 0;
+ virtual void update() = 0;
+ virtual void render(sf::RenderWindow &window) = 0;
private:
- {
- }
};
#endif
\ No newline at end of file
+#ifndef VOI_ENEMY_H
+#define VOI_ENEMY_H
+
+#include <SFML/Graphics.hpp>
+#include "Autonomous_object.h"
+
+class Voi_enemy
+{
+public:
+ bool collides(Object &other) override;
+ void collision(Object &other) override;
+ void update() override;
+ void render(sf::RenderWindow &window) override;
+
+private:
+ void move(Time) override;
+
+protected:
+ double x_pos;
+ double y_pos;
+ sf::Sprite sprite;
+};
+
+#endif
\ No newline at end of file