holesome/src/game/game_object.h

21 lines
426 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;
2023-05-09 20:50:50 +02:00
virtual void update() = 0;
2023-04-27 23:05:19 +02:00
2023-05-03 23:46:41 +02:00
TranslatedCoordinates coordinates;
2023-04-27 23:05:19 +02:00
};
2023-04-26 22:48:15 +02:00
#endif //HOLESOME_GAME_OBJECT_H