Example #1
0
        public BoardViewModel(IReplayService replayService)
        {
            this.replayService = replayService;

            VisiblePlayers = new ObservableCollection <PlayerState>();
            VisibleWalls   = new ObservableCollection <Wall>();

            replayService.NewBoardStateAvailable += OnDisplayedBoardStateVariableChanged;
            OnDisplayedBoardStateVariableChanged(replayService.GetCurrentBoardState());

            BoardSize = new Size(new Width(100), new Height(100));
        }