Пример #1
0
        public static string GetCharacterStats(string character, int level)
        {
            DataStore data = new DataStore(typeof(Seven).Assembly);

            Party p = new Party(data);

            Character c = (Character)typeof(Party).GetProperty(character).GetValue(p, null);

            while (c.Level < level)
            {
                c.GainExperience(c.ExpToNextLevel + 10);
            }

            return c.ToString();
        }
Пример #2
0
        public void LoadSavedGame(int save)
        {
            XmlDocument doc = new XmlDocument();
            doc.Load(Path.Combine(SavePath, GetSaveFilePath(save)));
            XmlNode saveGame = doc.SelectSingleNode("*");

            Party = new Party(Data, saveGame);

            _menuState = new MenuState(this);
            _menuState.Init();

            SetState(_menuState);
            //TestPostBattleState();
        }
Пример #3
0
        public void LoadNewGame()
        {
            Party = new Party(Data);

            _menuState = new MenuState(this);
            _menuState.Init();

            SetState(_menuState);
        }