mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Differentiate games and replays.
Took 9 seconds
This commit is contained in:
parent
0e33187388
commit
595eb609ad
29 changed files with 224 additions and 177 deletions
12
cockatrice/src/game/replay.cpp
Normal file
12
cockatrice/src/game/replay.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "replay.h"
|
||||
|
||||
#include "../client/tabs/tab_game.h"
|
||||
|
||||
Replay::Replay(TabGame *_tab, GameReplay *_replay) : AbstractGame(_tab)
|
||||
{
|
||||
gameState = new GameState(this, 0, -1, tab->getTabSupervisor()->getIsLocalGame(), {}, false,
|
||||
false, -1, false);
|
||||
connect(gameMetaInfo, &GameMetaInfo::startedChanged, gameState, &GameState::onStartedChanged);
|
||||
playerManager = new PlayerManager(this, -1, false, true);
|
||||
loadReplay(_replay);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue