Example #1
0
        public ShipLevelManager(Ship me)
        {
            Level = 1;
            Experience = 0;
            _me = me;
            _levelCalculator = new LevelCalculator();
            ExperienceToNextLevel = Convert.ToInt32(_levelCalculator.NextLevelExperience(Level));

            _me.OnKill += Killed;
            _me.OnDeath += Died;

            OnLevel += _me.LifeController.LeveledUp;
            OnLevel += _me.WeaponController.LeveledUp;
        }
Example #2
0
        public ShipLevelManager(Ship me)
        {
            Level                 = 1;
            Experience            = 0;
            _me                   = me;
            _levelCalculator      = new LevelCalculator();
            ExperienceToNextLevel = Convert.ToInt32(_levelCalculator.NextLevelExperience(Level));

            _me.OnKill  += Killed;
            _me.OnDeath += Died;

            OnLevel += _me.LifeController.LeveledUp;
            OnLevel += _me.WeaponController.LeveledUp;
        }