Exemple #1
0
        } //Every TakeDamage method will be special for each subclass because different races are weak and strong towards other races

        public void DealDamage(SuperHero enemy)
        {
            int attack = Klasser.RandInt(1, 6) * charactDataBaseDictionary[charact];

            enemy.TakeDamage(attack, race);
        } //A method to deal damage to enemies