/// <summary> /// Constructor for encounter. /// </summary> /// <param name="monsterList"></param> public Encounter(MonsterList monsterList) { this.monsterList = monsterList; this.totalEncounterXP = monsterList.GetTotalMonsterXP(); this.XPAward = monsterList.GetXPAward(); this.difficulty = monsterList.GetEncounterDifficulty(); }
private void CalculateXPButton_Click(object sender, RoutedEventArgs e) { characterList.CalculateCharacterTotals(); monsterList.CalculateMonsterTotals(characterList); EasyXPTextBlock.Text = Convert.ToString(characterList.GetTotalEasyXP()) + " XP"; MediumXPTextBlock.Text = Convert.ToString(characterList.GetTotalMediumXP()) + " XP"; HardXPTextBlock.Text = Convert.ToString(characterList.GetTotalHardXP()) + " XP"; DeadlyXPTextBlock.Text = Convert.ToString(characterList.GetTotalDeadlyXP()) + " XP"; AdventuringDayXPTextBlock.Text = Convert.ToString(characterList.GetTotalAdventuringDayXP()) + " XP"; CharactersTextBlock.Text = Convert.ToString(characterList.GetTotalNumberOfCharacters()); MonstersTextBlock.Text = Convert.ToString(monsterList.GetTotalNumberOfMonsters()); TotalXPTextBlock.Text = Convert.ToString(monsterList.GetTotalMonsterXP()) + " XP"; XPToAwardTextBlock.Text = Convert.ToString(monsterList.GetXPAward()) + " XP"; AdjustedXPTextBlock.Text = Convert.ToString(monsterList.GetAdjustedMonsterXP()) + " XP"; EncounterDifficultyTextBlock.Text = Convert.ToString(monsterList.GetEncounterDifficulty()); }