private static Monster CopyMonster(Monster monsterToCopy)
 {
     return new Monster(monsterToCopy.Name,
                        monsterToCopy.TotalHealth,
                        monsterToCopy.AttackDamage,
                        monsterToCopy.ExpGivenOnDeath);
 }
Example #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);
 }
Example #3
0
 private Task ActivateMonster(Monster monster)
 {
     _monsterUI.MonsterImage.Source = ImageUtils.GetImageSourceFromPath("/" + monster.FullImagePath);
     ActiveMonster = monster;
     return MonsterHealth.SetHealthPercentage(monster.CurrentHealth, monster.TotalHealth);
 }
Example #4
0
 public DungeonFloor(Monster monster)
 {
     Monsters = monster;
 }