holesome/src/game/game_object.h

31 lines
520 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-05-10 11:03:14 +02:00
#include "game.h"
class Game;
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
{}
virtual void update(Game *game)
{}
virtual void lateUpdate(Game *game)
{}
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