public float Attack(FNPlayer enemy) { float damage = 10; enemy.TakeDamage(damage); return(damage); }
/// <summary> /// Attack an enemy. /// </summary> /// <param name="enemy">Enemy to attack.</param> public void Attack(FNPlayer enemy) { // We just started to develop our game, so for now let's just // cause a damage of 10 on an enemy enemy.TakeDamage(10); }
/// <summary> /// Attack an enemy. /// </summary> /// <param name="enemy">Enemy to attack.</param> public abstract void Attack(FNPlayer enemy);
/// <summary> /// Attack an enemy. /// </summary> /// <param name="enemy">Enemy to attack.</param> public override void Attack(FNPlayer enemy) { // Berserker causes 20 damage enemy.TakeDamage(20); }
/// <summary> /// Attack an enemy. /// </summary> /// <param name="enemy">Enemy to attack.</param> public override void Attack(FNPlayer enemy) { // Berserker causes causes the damage specified in the constant enemy.TakeDamage(damage); }
/// <summary> /// Attack an enemy. /// </summary> /// <param name="enemy">Enemy to attack.</param> public override void Attack(FNPlayer enemy) { // Demolitionist causes 40 damage enemy.TakeDamage(40); }
/// <summary> /// Attack an enemy. /// </summary> /// <param name="enemy">Enemy to attack.</param> public override void Attack(FNPlayer enemy) { // Demolitionist causes the damage specified in the constant enemy.TakeDamage(damage); }