public override Cell CreateInstance(World world) { HeroEquipment equipment = new HeroEquipment("simple helmet", "simple armor", "simple shoes", CapacityBelt); HeroStay hs = new HeroStay(Strong, Agility, Endurance, Intelligence); Wizard wizard = new Wizard(hs, world, equipment, Health, Mana, Damage, Armor, LevelFraction); OnCreateHero(wizard); return wizard; }
public Wizard(HeroStay hs, World world, HeroEquipment equipment, int heroHealth, int heroMana, int heroDamage, int heroArmor, int levelFraction) { HeroStay = hs; _world = world; Health = heroHealth; Armor = heroArmor; Damage = heroDamage; Mana = heroMana; FractionLevel = levelFraction; HeroEquipment = equipment; Level = 1; }