21 lines
460 B
C++
21 lines
460 B
C++
#ifndef HOLESOME_GAME_OBJECT_H
|
|
#define HOLESOME_GAME_OBJECT_H
|
|
|
|
|
|
#include <memory>
|
|
#include <SFML/Graphics/Drawable.hpp>
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
#include "../coordinates/translated_coordinates.h"
|
|
|
|
class GameObject {
|
|
public:
|
|
GameObject();
|
|
|
|
virtual void draw(sf::RenderWindow *window) const = 0;
|
|
virtual void update() const = 0;
|
|
|
|
protected:
|
|
std::shared_ptr<TranslatedCoordinates> coordinates;
|
|
};
|
|
|
|
#endif //HOLESOME_GAME_OBJECT_H
|