public BlightLocationsViewModel (BlightService blightService)
		{
			BlightService = blightService;
			//var models = Application.CurrentGame.Locations.Select (l => new LocationViewModel (this, l));
			//LocationSections = new ObservableCollection<LocationViewModel> (models);

			MessagingCenter.Subscribe<NecromancerActivationViewModel>(this, "NecromancerPhaseComplete", OnNecromancerPhaseComplete);
		}
Ejemplo n.º 2
0
		public BlightsViewModel (BlightService blightService)
		{
			Locations = new ObservableCollection<HeroPhaseLocationViewModel> ();

			_blightService = blightService;

			MessagingCenter.Subscribe<NecromancerActivationViewModel>(this, "NecromancerPhaseComplete", OnNecromancerPhaseComplete);
			MessagingCenter.Subscribe<BlightViewModel> (this, "DestroyBlight", DestroyBlight);
			MessagingCenter.Subscribe<HeroPhaseLocationViewModel> (this, "SpawnBlight", SpawnBlight);
			MessagingCenter.Subscribe<BlightViewModel, MoveBlightArgs> (this, "MoveBlight", MoveBlight);
			MessagingCenter.Subscribe<HeroPhaseLocationViewModel> (this, "SelectBlight", SelectBlight);

			var locationViewModels = Application.CurrentGame.Locations.Select (l => new HeroPhaseLocationViewModel (l, Application.CurrentGame.Heroes.Active.Where(x=>x.LocationId == l.Id).ToList()));
			Locations = new ObservableCollection<HeroPhaseLocationViewModel> (locationViewModels);
		}
Ejemplo n.º 3
0
		public GameStateFactory (DataService dataService, 
		                         BlightService blightService)
		{
			_dataService = dataService;
			_blightService = blightService;
		}
		public NecromancerService (D6GeneratorService d6GeneratorService, BlightService blightService)
		{
			_d6GeneratorService = d6GeneratorService;
			_blightService = blightService;
		}