public BoardGame(IPlayerQueue playerQueue) { this.playerQueue = playerQueue; board = new Board(); CreateStartingBoard(); SnapshotContainer = new SnapshotContainer <Turn>(); }
public BoardGame(IPlayerQueue playerQueue) { this.playerQueue = playerQueue; board = new Board(); CreateStartingBoard(); SnapshotContainer = new SnapshotContainer<Turn>(); }
public PlayQueueViewModel( IPlayerController player, IEventAggregator eventAggregator, IRegionManager regionManager) { _player = player; _playQueue = player.Playlist; _eventAggregator = eventAggregator; _regionManager = regionManager; JumpToTrackCommand = new StaticCommand<PlayerQueueItem>(ExecuteJumpToTrack); DeleteTracksCommand = new StaticCommand<IEnumerable>(ExecuteDeleteTracks); }
public PlayerController( ISession session, IPlayer player, Dispatcher dispatcher, ILoggerFacade logger, IEventAggregator eventAggregator) { _player = player; _volume = 0.2f; _session = session; _logger = logger; _eventAggregator = eventAggregator; _session.EndOfTrack += OnSessionEndOfTrack; _session.MusicDeliver += OnSessionMusicDeliver; _session.PlayTokenLost += OnSessionPlayerTokenLost; _session.StopPlayback += OnSessionStopPlayback; _session.StartPlayback += OnSessionStartPlayback; _playlist = new PlayerQueue(dispatcher); _playlist.CurrentChanged += OnCurrentChanged; _timer = new Timer(100); _timer.Elapsed += OnTimerElapsed; }
public void Setup() { _queue = new vNextPlayerQueue(Dispatcher.CurrentDispatcher); }
public RevGame(IPlayerQueue queue) : base(queue) { }
public void ClearQueue() { _queue = null; }
public void LoadArtist(IArtist artist) { _queue = new ArtistQueue(artist); LoadTrack(0); }
public void LoadPlaylist(IPlaylist playlist) { _queue = new PlaylistQueue(playlist); LoadTrack(0); }
public void LoadSearch(ISearch search) { _queue = new SearchQueue(_session, search); LoadTrack(0); }
public ChineseChessGame(IPlayerQueue queue) : base(queue) { }