holesome/src/game/game_object.h

29 lines
495 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-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
{}
2023-05-24 14:00:51 +02:00
virtual void update()
{}
2023-05-24 14:00:51 +02:00
virtual void lateUpdate()
{}
2023-04-27 23:05:19 +02:00
2023-05-03 23:46:41 +02:00
TranslatedCoordinates coordinates;
bool isActive = true;
2023-04-27 23:05:19 +02:00
};
2023-04-26 22:48:15 +02:00
#endif //HOLESOME_GAME_OBJECT_H