CLobbyScreen.h 898 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * CLobbyScreen.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "CSelectionBase.h"
  12. class CBonusSelection;
  13. class GraphicalPrimitiveCanvas;
  14. class CLobbyScreen final : public CSelectionBase
  15. {
  16. public:
  17. std::shared_ptr<CButton> buttonChat;
  18. std::shared_ptr<GraphicalPrimitiveCanvas> blackScreen;
  19. CLobbyScreen(ESelectionScreen type, bool hideScreen = false);
  20. ~CLobbyScreen();
  21. void toggleTab(std::shared_ptr<CIntObject> tab) final;
  22. void startCampaign();
  23. void startScenario(bool allowOnlyAI = false);
  24. void toggleMode(bool host);
  25. void toggleChat();
  26. void updateAfterStateChange();
  27. const CMapInfo * getMapInfo() final;
  28. const StartInfo * getStartInfo() final;
  29. std::shared_ptr<CBonusSelection> bonusSel;
  30. };