Chat.h 520 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "OptionsWindow.h"
  3. #include <TextFeld.h>
  4. #include <Knopf.h>
  5. #include "ChatHistory.h"
  6. #include "ChatOptions.h"
  7. class Chat : public OptionsWindow
  8. {
  9. private:
  10. ChatHistory* history;
  11. Framework::TextFeld* commandLine;
  12. Framework::Knopf* sendButton;
  13. ChatOptions* options;
  14. bool optionsAdded;
  15. public:
  16. Chat();
  17. ~Chat();
  18. void addMessage(char* data);
  19. void initOptions(char* data);
  20. bool tick(double time) override;
  21. void render(Framework::Bild& rObj) override;
  22. };