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>
|
2023-05-03 15:31:52 +02:00
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
2023-04-27 23:05:19 +02:00
|
|
|
#include "../coordinates/translated_coordinates.h"
|
2023-05-10 11:03:14 +02:00
|
|
|
#include "game.h"
|
|
|
|
|
|
|
|
class Game;
|
2023-04-26 22:48:15 +02:00
|
|
|
|
2023-05-03 15:31:52 +02:00
|
|
|
class GameObject {
|
2023-04-27 23:05:19 +02:00
|
|
|
public:
|
|
|
|
GameObject();
|
|
|
|
|
2023-05-03 15:31:52 +02:00
|
|
|
virtual void draw(sf::RenderWindow *window) const = 0;
|
2023-05-10 11:03:14 +02:00
|
|
|
virtual void update(Game *game) = 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
|