Esempio n. 1
0
		public PitchViewModel(GameStateService gameState, GameEngineService gameEngine)
		{
			_gameState = gameState;
			_gameEngine = gameEngine;

			Initialize();
		}
Esempio n. 2
0
		public MainViewModel()
		{
			_gameState = new GameStateService(new ObservableTimerService());
			_gameEngine = new GameEngineService(_gameState);

			PitchVM = new PitchViewModel(_gameState, _gameEngine);
			DetailsVM = new DetailsViewModel(_gameState, _gameEngine);

			_gameState.Initialize();
		}
Esempio n. 3
0
		public GameEngineService(GameStateService gameState)
		{
			_gameState = gameState;
		}
Esempio n. 4
0
		public DetailsViewModel(GameStateService gameState, GameEngineService gameEngine)
		{
			_gameState = gameState;
			_gameEngine = gameEngine;
		}