Beispiel #1
0
 public void stopFighting()
 {
     target.combat.target = null;
     target.combat.isFighting = false;
     target = null;
     isFighting = false;
 }
Beispiel #2
0
        public int attack(Character target)
        {
            int damageDone = 0;

            target.takeDamage(character, damageDone = World.randomNumber.Next(2, 20));

            return damageDone;
        }
Beispiel #3
0
 public Combat(Character character)
 {
     this.character = character;
     this.target = null;
 }
Beispiel #4
0
        public void takeDamage(Character attacker, int damage)
        {
            combat.target = attacker;
            combat.isFighting = true;

            stats.health -= damage;
        }