public CombatViewModel(Player player, Enemy enemy) { Playermaxhealth = player.maxhealth; Playerhealth = player.health; Playermaxmana = player.maxmana; Playermana = player.mana; Playerimage = player.image; Playername = player.name; Playerdmg = player.DMG; // Playerdef = player.DEF; Playerint = player.INT; Enemymaxhealth = enemy.maxhealth; Enemyhealth = enemy.health; Enemyimage = enemy.image; Enemyname = enemy.name; Enemydmg = enemy.DMG; Physical = new PhysicalCommand(this); Energy = new EnergyCommand(this); Defend = new DefendCommand(this); Heal = new HealCommand(this); ResultVisibility = Visibility.Hidden; }
public CombatViewModel(Dialog dialog = null) { //UserControlView = new CombatUserControl(); Player player = dialog.Combat.hrac; Enemy enemy = dialog.Combat.enemy; this.dialog = dialog; Playermaxhealth = player.maxhealth; Playerhealth = player.health; Playermaxmana = player.maxmana; Playermana = player.mana; Playerimage = player.image; Playername = player.name; Playerdmg = player.DMG; Playerdef = player.DEF; Playerint = player.INT; Enemymaxhealth = enemy.maxhealth; Enemyhealth = enemy.health; Enemyimage = enemy.image; Enemyname = enemy.name; Enemydmg = enemy.DMG; Physical = new PhysicalCommand(this); Energy = new EnergyCommand(this); Defend = new DefendCommand(this); Heal = new HealCommand(this); }