holesome/src/game/game_object.h
2023-05-24 14:00:51 +02:00

28 lines
495 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
{}
virtual void update()
{}
virtual void lateUpdate()
{}
TranslatedCoordinates coordinates;
bool isActive = true;
};
#endif //HOLESOME_GAME_OBJECT_H