mirror of
https://github.com/modelec/ihm.git
synced 2026-01-18 16:47:32 +01:00
game end
This commit is contained in:
@@ -77,3 +77,7 @@ void InGame::updateTime()
|
||||
emit askTCPServer("ihm;strat;get speed;1");
|
||||
emit askTCPServer("ihm;strat;get angle;1");
|
||||
}
|
||||
|
||||
void InGame::stopTimer() {
|
||||
this->timer->stop();
|
||||
}
|
||||
|
||||
2
InGame.h
2
InGame.h
@@ -21,6 +21,8 @@ public:
|
||||
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
void stopTimer();
|
||||
|
||||
signals:
|
||||
void askTCPServer(const std::string& message);
|
||||
|
||||
|
||||
@@ -245,4 +245,7 @@ void MainWindow::handleMessage(const std::string& message)
|
||||
{
|
||||
this->inGame->updateAngle(list[3]);
|
||||
}
|
||||
else if (list[2] == "end") {
|
||||
this->inGame->stopTimer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user