2020-07-03 03:48:58 +00:00
|
|
|
//
|
|
|
|
// Created by SeanOMik on 7/2/2020.
|
|
|
|
// Github: https://github.com/SeanOMik
|
|
|
|
// Email: seanomik@gmail.com
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SIMPLEENGINE_EVENT_H
|
|
|
|
#define SIMPLEENGINE_EVENT_H
|
|
|
|
|
2021-03-12 23:18:23 +00:00
|
|
|
#include "destructable.h"
|
|
|
|
|
2020-07-03 03:48:58 +00:00
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
|
|
|
|
namespace simpleengine {
|
2021-03-12 23:18:23 +00:00
|
|
|
class Event : public simpleengine::Destructable {
|
2020-07-03 03:48:58 +00:00
|
|
|
public:
|
|
|
|
explicit Event(sf::RenderWindow* window = nullptr) : window(window) {}
|
|
|
|
virtual ~Event() = default;
|
2021-03-12 23:18:23 +00:00
|
|
|
|
2020-07-03 03:48:58 +00:00
|
|
|
virtual void Update(const float& delta_time) = 0;
|
2020-07-03 18:34:22 +00:00
|
|
|
virtual void Render(sf::RenderTarget* target) = 0;
|
2020-07-03 03:48:58 +00:00
|
|
|
protected:
|
|
|
|
sf::RenderWindow* window;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //GAMEENGINE_EVENT_H
|