R-TYPE
TextSystem.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-STG-5-1-rtype-romanie.de-meyer
4 ** File description:
5 ** TextSystem
6 */
7 
8 #ifndef TEXTSYSTEM_HPP_
9 #define TEXTSYSTEM_HPP_
10 
11 #include "./System.hpp"
12 #include <SFML/Graphics.hpp>
13 #include <SFML/Window.hpp>
14 // #include <Text.hpp>
15 #include "../../Graphics/InitSfml.hpp"
16 
17 namespace ECS {
18 class TextSystem : public System {
19 public:
20  TextSystem(const std::shared_ptr<ComponentManager>& componentsManager, const std::shared_ptr<EntityManager>& entityManager);
21  ~TextSystem() = default;
22  void update();
23  bool checkIsValidEntity(Entity entity);
24  void setSfml(std::shared_ptr<InitSfml> sfml);
25 
26 protected:
27 private:
28  std::shared_ptr<InitSfml> _sfml;
29  std::shared_ptr<sf::RenderWindow> _window;
30 };
31 }
32 
33 #endif /* !TEXTSYSTEM_HPP_ */
Definition: Entity.hpp:30
Definition: System.hpp:18
Definition: TextSystem.hpp:18
void setSfml(std::shared_ptr< InitSfml > sfml)
Definition: TextSystem.cpp:47
~TextSystem()=default
void update()
Definition: TextSystem.cpp:26
bool checkIsValidEntity(Entity entity)
Definition: TextSystem.cpp:60
TextSystem(const std::shared_ptr< ComponentManager > &componentsManager, const std::shared_ptr< EntityManager > &entityManager)
Definition: TextSystem.cpp:18
Definition: ComponentManager.hpp:14