Esempio n. 1
0
        // Function to initialize a new battle, for trainers and wild Delts
        public void InitializeBattle()
        {
            GameQueue.WorldAdd(action: () => GameQueue.Inst.ChangeQueueType(GameQueue.QueueType.Battle));

            BattleManager.Inst.BattleUI.LoadBackgroundAndPodium();

            PlayBattleMusic();

            // Clear temp battle stats for player and opponent
            State.PlayerState.ResetStatAdditions();
            State.OpponentState.ResetStatAdditions();

            State.PlayerState.Delts = GameManager.Inst.deltPosse;

            // Select current battling Delts, update UI
            DeltemonClass startingDelt = State.PlayerState.Delts.Find(delt => delt.curStatus != statusType.DA);

            State.RegisterAction(true, new SwitchDeltAction(State, startingDelt));
            State.PlayerState.ChosenAction.ExecuteAction();
        }
Esempio n. 2
0
 public void RegisterPlayerAction(BattleAction action)
 {
     State.RegisterAction(true, action);
     BattleManager.Inst.TurnProcess.StartBattleExecution();
 }
Esempio n. 3
0
 public void ChooseNextAction()
 {
     State.RegisterAction(false, GetNextAction());
 }