Esempio n. 1
0
 static void Main(string[] args)
 {
     Hero hero = new Hero(name: "Ivan", nickName: "Ruski", health: 100, mana: 100, manaRegenerationRate: 2);
     Enemy enemy = new Enemy(health: 100, mana: 100, damage: 20);
     Weapon wep = new Weapon("Damn", 20);
     hero.Equip(wep);
     Dungeon test = new Dungeon(hero, enemy);
     test.Spawn(hero);
     Commands(test,hero,enemy);
 }
Esempio n. 2
0
 public virtual int Attack(Weapon weapon)
 {
     return weapon.Damage;
 }
Esempio n. 3
0
 public virtual int Equip(Weapon weapom)
 {
     return weapom.Damage;
 }
Esempio n. 4
0
 public override int Equip(Weapon weapom)
 {
     return WDamage+= weapom.Damage;
 }
Esempio n. 5
0
 public override int Attack(Weapon weapon)
 {
     return WDamage + weapon.Damage;
 }