Пример #1
0
        private static void Battle()
        {
            var AllPokes = FileImporter.GetPokesFromCSV(@"Gen1\Pokedex\updated_csv_pokedex.csv");
            var AllMoves = FileImporter.GetPokemonMovesFromCSV(@"Gen1\Gen1MoveList.csv");

            var p = FileImporter.Deserialize("user.rby");

            foreach (var poke in p)
            {
                poke.PrepareForBattle(AllMoves, 100, AllPokes.First(k => k.PokemonName == poke.Name));
            }

            var player = new List <RBYPokemon>();
            var cpu    = new List <RBYPokemon>();


            foreach (var poke in p)
            {
                player.Add(new RBYPokemon(poke, 100));
            }

            foreach (var poke in p)
            {
                cpu.Add(new RBYPokemon(poke, 100));
            }

            var Gen1 = new Engine(player, cpu, FileImporter.ImportTypeMatrix("Gen2MoreMatrix.csv"), AllMoves);

            Gen1.StartBattle();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var typematrix = FileImporter.ImportTypeMatrix("Gen2MoreMatrix.csv");

            //ShowTypeMatrix(typematrix);
            Battle();
        }