コード例 #1
0
        public void SetUp()
        {
            EventManager.SetIntance(new EventManager());
            Database.LoadExperienceTable();

            inventory = new Inventory();
            bank      = new Bank();

            skillsController = new SkillsController(inventory, bank);
        }
コード例 #2
0
        public void GetLevelTest()
        {
            Database.LoadExperienceTable();
            Assert.AreEqual(63, SkillsController.GetLevel(407014));
            Assert.AreEqual(64, SkillsController.GetLevel(407015));
            Assert.AreEqual(64, SkillsController.GetLevel(407016));

            Assert.AreEqual(99, SkillsController.GetLevel(13034431));
            Assert.AreEqual(125, SkillsController.GetLevel(171077457));
            Assert.AreEqual(126, SkillsController.GetLevel(188884740));
            Assert.AreEqual(126, SkillsController.GetLevel(200000000));
        }
コード例 #3
0
 public void Setup()
 {
     Database.LoadExperienceTable();
     skillsClasses.Clear();
     skillsClasses.Add("Agility", new Agility());
     skillsClasses.Add("Construction", new Construction());
     skillsClasses.Add("Cooking", new Cooking());
     skillsClasses.Add("Crafting", new Crafting());
     skillsClasses.Add("Farming", new Farming());
     skillsClasses.Add("Firemaking", new Firemaking());
     skillsClasses.Add("Fishing", new Fishing());
     skillsClasses.Add("Fletching", new Fletching());
     skillsClasses.Add("Herblore", new Herblore());
     skillsClasses.Add("Hunter", new Hunter());
     skillsClasses.Add("Mining", new Mining());
     skillsClasses.Add("Prayer", new Prayer());
     skillsClasses.Add("Runecraft", new Runecraft());
     skillsClasses.Add("Smithing", new Smithing());
     skillsClasses.Add("Thieving", new Thieving());
     skillsClasses.Add("Woodcutting", new Woodcutting());
 }