public Game(IEventBus eventBus, LoggingService logger) { _eventBus = eventBus; _logger = logger; Players = new List <Player> { new Player(CardGroupId.Player1), new Player(CardGroupId.Player2), new Player(CardGroupId.Player3), new Player(CardGroupId.Player4) }; EncounterSets = new List <EncounterSet>(); LocalPacks = new List <string>(); ScenarioCards = new CardGroup(CardGroupId.Scenario); ScenarioCards.AddCardZone(new CardZone("Act/Agenda Bar", CardZoneLocation.Top)); LocationCards = new CardGroup(CardGroupId.Locations); EncounterDeckCards = new CardGroup(CardGroupId.EncounterDeck); _eventBus.SubscribeToButtonClickRequest(ButtonClickRequestHandler); }
public Player(CardGroupId deck) { CardGroup = new CardGroup(deck); CardGroup.AddCardZone(new CardZone("Hand", CardZoneLocation.Bottom)); CardGroup.AddCardZone(new CardZone("Threat Area", CardZoneLocation.Bottom)); CardGroup.AddCardZone(new CardZone("Tableau", CardZoneLocation.Bottom)); Health = new Stat(StatType.Health, deck); Sanity = new Stat(StatType.Sanity, deck); Resources = new Stat(StatType.Resources, deck); Clues = new Stat(StatType.Clues, deck); Faction = Faction.Other; Resources.Value = 5; _eventBus.SubscribeToStatTrackingVisibilityChangedEvent(e => { _isStatTrackingVisible = e.IsVisible; NotifyPropertyChanged(nameof(StatTrackingVisibility)); }); }