mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
* [Refactor] Move game logic into libcockatrice_game * [Refactor] Include card_state.h in player_actions.h * [Game] Inject settings providers into libcockatrice_game, drop Widgets * [Game] Follow base rename to createCardRequested after rebase * [Game] Drop unused CardItem forward declaration * [Game] Fix includes after moving game logic into libcockatrice_game --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
23 lines
728 B
C++
23 lines
728 B
C++
#include "replay.h"
|
|
|
|
#include "game_meta_info.h"
|
|
#include "game_state.h"
|
|
#include "player/player_manager.h"
|
|
|
|
#include <QList>
|
|
|
|
class GameReplay;
|
|
class QObject;
|
|
|
|
Replay::Replay(QObject *_parent,
|
|
const GameReplay *_replay,
|
|
bool isLocalGame,
|
|
IInterfaceSettingsProvider *interfaceSettings,
|
|
ICardPreferenceProvider *cardPreferences)
|
|
: AbstractGame(_parent)
|
|
{
|
|
gameState = new GameState(this, 0, -1, isLocalGame, {}, false, false, -1, false);
|
|
connect(gameMetaInfo, &GameMetaInfo::startedChanged, gameState, &GameState::onStartedChanged);
|
|
playerManager = new PlayerManager(this, -1, false, true, interfaceSettings, cardPreferences);
|
|
loadReplay(_replay);
|
|
}
|