Ejemplo n.º 1
0
        public void startSingleBattle(Trainer trainerOne, Trainer trainerTwo)
        {
            //our state is currently at the start of the battle
            state = State.BattleStart;

            //create instance of battle
            battle = new PokeBattle(trainerOne, trainerTwo);

            //start the battle thread
            thread = new Thread(battle.BattleLoop);
            thread.Start();

            BattleMenu.Initialize(graphics, content, font, battle, this);
        }