public GameControllerSut( IGameHistoryViewModel gameHistory, IPokerTableStatisticsViewModel overlayPokerTableStatistics, IPokerTableStatisticsViewModel liveStatsPokerTableStatistics, IConstructor <IPlayerStatistics> playerStatisticsMake, IPlayerStatisticsUpdater playerStatisticsUpdater, ITableOverlayManager tableOverlayManager, IPokerTableStatisticsWindowManager pokerTableStatisticsWindowManager, IGameHistoryWindowManager gameHistoryWindowManager) : base( gameHistory, overlayPokerTableStatistics, liveStatsPokerTableStatistics, playerStatisticsMake, playerStatisticsUpdater, tableOverlayManager, pokerTableStatisticsWindowManager, gameHistoryWindowManager) { }
public ITableOverlayManager InitializeWith( IGameHistoryViewModel gameHistory, IPokerTableStatisticsViewModel pokerTableStatistics, int showHoleCardsDuration, IConvertedPokerHand firstHand) { HeroName = firstHand.HeroName; _seatMapper.InitializeWith(firstHand.TotalSeats); ITableOverlaySettingsViewModel overlaySettings = SetupOverlaySettings(firstHand); _tableOverlay.InitializeWith(_seatMapper, overlaySettings, gameHistory, pokerTableStatistics, firstHand.HeroName, showHoleCardsDuration); _tableOverlayWindow.DataContext = _tableOverlay; _tableOverlayWindow.Show(); var watchTableTimer = new DispatcherTimerAdapter { Interval = TimeSpan.FromMilliseconds(100) }; var waitThenTryToFindTableAgainTimer = new DispatcherTimerAdapter { Interval = TimeSpan.FromMilliseconds(3000) }; _overlayToTableAttacher.InitializeWith(_tableOverlayWindow, watchTableTimer, waitThenTryToFindTableAgainTimer, _pokerRoomInfoLocator.GetPokerRoomInfoFor(firstHand.Site), firstHand.TableName) .Activate(); UpdateTableOverlay(firstHand); UpdateSeatMapper(firstHand); UpdateOverlayToTableAttacher(firstHand); RegisterEvents(); return(this); }
public ITableOverlayViewModel InitializeWith( ISeatMapper seatMapper, ITableOverlaySettingsViewModel overlaySettings, IGameHistoryViewModel gameHistory, IPokerTableStatisticsViewModel pokerTableStatisticsViewModel, string heroName, int showHoleCardsDuration) { _seatMapper = seatMapper; GameHistory = gameHistory; PokerTableStatisticsViewModel = pokerTableStatisticsViewModel; _heroName = heroName; _showHoleCardsDuration = showHoleCardsDuration; CreatePlayerOverlays(overlaySettings.TotalSeats); InitializeOverlaySettings(overlaySettings); RegisterEvents(); return(this); }
public GameController( IGameHistoryViewModel gameHistory, IPokerTableStatisticsViewModel overlayPokerTableStatistics, IPokerTableStatisticsViewModel liveStatsPokerTableStatistics, IConstructor <IPlayerStatistics> playerStatisticsMake, IPlayerStatisticsUpdater playerStatisticsUpdater, ITableOverlayManager tableOverlayManager, IPokerTableStatisticsWindowManager liveStatsWindowManager, IGameHistoryWindowManager gameHistoryWindowManager) { _gameHistory = gameHistory; _overlayPokerTableStatistics = overlayPokerTableStatistics; _liveStatsPokerTableStatistics = liveStatsPokerTableStatistics; _playerStatisticsMake = playerStatisticsMake; _playerStatisticsUpdater = playerStatisticsUpdater; _tableOverlayManager = tableOverlayManager; _liveStatsWindow = liveStatsWindowManager; _gameHistoryWindow = gameHistoryWindowManager; RegisterEvents(); PlayerStatistics = new Dictionary <string, IPlayerStatistics>(); }