/// <summary> /// Attacks the specified player. /// </summary> /// <param name="player">Attacked player</param> /// <param name="attackStrength">Strength of the attack</param> /// <returns>True if the attack killed the player</returns> public Tuple<int, bool> AttackPlayer(Player player, int attackStrength) { return Tuple.Create(player.ReceiveDamage(attackStrength + (int) Math.Floor(this.AttackStat * (this.OffensiveSlot == null ? 1 : this.OffensiveSlot.AttackMultiplier))), player.Health < 1); }
/// <summary> /// Attacks the specified player. /// </summary> /// <param name="player">Attacked player</param> /// <param name="attackStrength">Strength of the attack</param> /// <returns>True if the attack killed the player</returns> public Tuple <int, bool> AttackPlayer(Player player, int attackStrength) { return(Tuple.Create(player.ReceiveDamage(attackStrength + (int)Math.Floor(this.AttackStat * (this.OffensiveSlot == null ? 1 : this.OffensiveSlot.AttackMultiplier))), player.Health < 1)); }