Esempio n. 1
0
 public void gameStart()
 {
     Welcome();
     hero = createHero(name);
     Monster.addMonsters();
     WepaonsInicialization.addWeaponsList();
     ArmorInicialization.addArmorList();
     PotionsInicialization.addPotionsList();
     while (true)
     {
         Menu.mainMenuDecision(hero);
     }
 }
Esempio n. 2
0
        public static void Load(Hero hero)
        {
            string jsonString;
            string jsonFile = AppDomain.CurrentDomain.BaseDirectory + @"\" + "HeroAdvJson.txt";

            jsonString    = File.ReadAllText(jsonFile);
            saveCharacter = JsonConvert.DeserializeObject <jsonObject>(jsonString);
            SaveLoad.loadHeroStats(saveCharacter, hero);

            Monster.addMonsters();
            WepaonsInicialization.addWeaponsList();
            ArmorInicialization.addArmorList();
            PotionsInicialization.addPotionsList();
            while (true)
            {
                Menu.mainMenuDecision(hero);
            }
        }