hotseatgame.cpp 670 B

123456789101112131415161718192021222324252627282930
  1. #include "hotseatgame/gui/hotseatgame.h"
  2. #include "ui_hotseatgame.h"
  3. #include "gui/guiscenemanager.h"
  4. #include <QDebug>
  5. HotSeatGame::HotSeatGame(QWidget *parent) :
  6. Scene(parent),
  7. ui(new Ui::HotSeatGame)
  8. {
  9. qDebug() << "Initialising game";
  10. ui->setupUi(this);
  11. }
  12. void HotSeatGame::init() {
  13. }
  14. HotSeatGame::~HotSeatGame()
  15. {
  16. delete ui;
  17. }
  18. void HotSeatGame::on_surrender_button__clicked()
  19. {
  20. //GuiSceneManager::getInstance().showMainWindow();
  21. //GuiSceneManager::getInstance().hideDetachedScene("hotseatgame");
  22. //GuiSceneManager::getInstance().changeScene("hotseatgame_results");
  23. GuiSceneManager::getInstance().changeScene("main_menu");
  24. }