private static Monster CopyMonster(Monster monsterToCopy)
 {
     return new Monster(monsterToCopy.Name,
                        monsterToCopy.TotalHealth,
                        monsterToCopy.AttackDamage,
                        monsterToCopy.ExpGivenOnDeath);
 }
示例#2
0
 private Task MonsterAttacksPlayer(Monster monster, Team activePlayerTeam, HealthBar playerHealth)
 {
     var monsterAttackDamage = monster.AttackDamage;
     activePlayerTeam.TakeDamage(1000);
     return playerHealth.SetHealthPercentage(activePlayerTeam.CurrentHealth, activePlayerTeam.TotalHealth);
 }
示例#3
0
 private Task ActivateMonster(Monster monster)
 {
     _monsterUI.MonsterImage.Source = ImageUtils.GetImageSourceFromPath("/" + monster.FullImagePath);
     ActiveMonster = monster;
     return MonsterHealth.SetHealthPercentage(monster.CurrentHealth, monster.TotalHealth);
 }
示例#4
0
 public DungeonFloor(Monster monster)
 {
     Monsters = monster;
 }