public Game(Configuration configuration) { Players = new List <Player> { new Player(configuration, 1), new Player(configuration, 2), new Player(configuration, 3), new Player(configuration, 4) }; EncounterSets = new List <EncounterSet>(); LocalPacks = new List <string>(); ScenarioCards = new SelectableCards(SelectableType.Scenario); LocationCards = new SelectableCards(SelectableType.Location); EncounterDeckCards = new SelectableCards(SelectableType.Encounter); }
public Player(Configuration configuration, int id) { _configuration = configuration; ID = id; SelectableCards = new SelectableCards(SelectableType.Player); Health = new Stat("health.png"); Sanity = new Stat("sanity.png"); Resources = new Stat("resource.png"); Clues = new Stat("clue.png"); Faction = Faction.Other; Resources.Value = 5; configuration.PropertyChanged += (s, e) => { if (e.PropertyName == nameof(Configuration.TrackPlayerStats)) { NotifyPropertyChanged(nameof(StatTrackingVisibility)); } }; }
public CardSet(SelectableCards selectableCards) { Buttons = new ObservableCollection <CardInSetButton>(); _selectableCards = selectableCards; }