holesome/src/game/game_object.h

22 lines
460 B
C
Raw Normal View History

2023-04-26 22:48:15 +02:00
#ifndef HOLESOME_GAME_OBJECT_H
#define HOLESOME_GAME_OBJECT_H
2023-04-27 23:05:19 +02:00
#include <memory>
#include <SFML/Graphics/Drawable.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
2023-04-27 23:05:19 +02:00
#include "../coordinates/translated_coordinates.h"
2023-04-26 22:48:15 +02:00
class GameObject {
2023-04-27 23:05:19 +02:00
public:
GameObject();
virtual void draw(sf::RenderWindow *window) const = 0;
virtual void update() const = 0;
2023-04-27 23:05:19 +02:00
protected:
std::shared_ptr<TranslatedCoordinates> coordinates;
};
2023-04-26 22:48:15 +02:00
#endif //HOLESOME_GAME_OBJECT_H