Пример #1
0
        public float Attack(FNPlayer enemy)
        {
            float damage = 10;

            enemy.TakeDamage(damage);
            return(damage);
        }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <summary>
 /// Attack an enemy.
 /// </summary>
 /// <param name="enemy">Enemy to attack.</param>
 public abstract void Attack(FNPlayer enemy);
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 /// <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);
 }
Пример #7
0
 /// <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);
 }