hotseatgame.cpp 753 B

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