R-Type
R-Type project
ChangeKey.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** RType
4 ** File description:
5 ** ChangeKey
6 */
7 
8 #ifndef CHANGEKEY_HPP_
9 #define CHANGEKEY_HPP_
10 
11 #include "KapEngine.hpp"
12 #include "KapEngineDebug.hpp"
13 #include "KapEngineEvents.hpp"
14 
15 using namespace KapEngine;
16 
17 namespace RType {
18 
19  class ChangeKey : public Component {
20  public:
21  ChangeKey(std::shared_ptr<GameObject> go);
22  ~ChangeKey();
23 
24  void onAwake() override;
25  void onUpdate() override;
26 
27  void setCanvasSettings(std::size_t id) { _idSettings = id; }
28  void setCanvasInputSentence(std::size_t id) { _idInput = id; }
29 
30  void startSelect(std::string const &prefName);
31 
32  protected:
33  private:
34  std::size_t _idSettings = 0;
35  std::size_t _idInput = 0;
36  bool _startSelect = false;
37  std::string _prefName = "";
38 
39  void displayInputs();
40  void displaySettings();
41  };
42 
43 } // namespace RType
44 
45 #endif /* !CHANGEKEY_HPP_ */
RType::ChangeKey
Definition: ChangeKey.hpp:19
KapEngine::Component
Definition: Component.hpp:38
KapEngine
main namespace
Definition: Component.hpp:17