public ExperienceToNextHeroLevel(Hero hero, double expGained)
        {
            _levelCalculator = new HeroLevelCalculator();
            InitializeComponent();

            DrawConditionalElements(hero, expGained);
            DrawHeroProfile(hero);
        }
Example #2
0
        public Hero(string heroName, 
                    int hitPointsPerLevel, 
                    int healingPerLevel,
                    int attackDamagePerLevel, 
                    AppGlobals.Types type,
                    int baseExpPerLevel,
                    int maxLevel)
        {
            CurrentExp = 0;
            Id = Guid.NewGuid();
            Name = heroName;
            Type = type;

            MaxLevel = maxLevel;
            BaseExpPerLevel = baseExpPerLevel;
            _levelCalculator = new HeroLevelCalculator();
            _hitPointsPerLevel = hitPointsPerLevel;
            _attackDamagePerLevel = attackDamagePerLevel;
            _healingPerLevel = healingPerLevel;

            FullImagePath = AppGlobals.HeroImagePathPrefix + heroName + "/" + heroName + "Full.png";
            ProfileImagePath = AppGlobals.HeroImagePathPrefix + heroName + "/" + heroName + "Profile.png";
        }