holesome/src/game/game_object.h

30 lines
520 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"
#include "game.h"
class Game;
class GameObject
{
public:
GameObject();
virtual void draw(sf::RenderWindow *window) const
{}
virtual void update(Game *game)
{}
virtual void lateUpdate(Game *game)
{}
TranslatedCoordinates coordinates;
};
#endif //HOLESOME_GAME_OBJECT_H