public DiscardCardBattleState(BattleSceneController BattleSceneControllerRef)
            : base(BattleSceneControllerRef)
        {
            WindowManager.OnDiscardWindowClosed += SetMainBattleState;

            BattleSceneControllerRef.BattleView.SetDiscardCardsControlStrategy();
        }
Esempio n. 2
0
        public InitialBattleState(BattleSceneController BattleSceneControllerRef)
            : base(BattleSceneControllerRef)
        {
            BattleHud.Get().SetInitialBattleState();
            BattleSystem.Get().SetInitialBattleState();

            BattleSceneControllerCached.BattleState = new MainBattleState(BattleSceneControllerCached);
        }
Esempio n. 3
0
        public PlayBattleState(BattleSceneController BattleSceneControllerRef)
            : base(BattleSceneControllerRef)
        {
            BattleSystem.Get().OnTimerFinished += SetNextState;
            BattleSystem.Get().SetPlayBattleState();

            BattleHud.Get().SetPlayBattleState();
        }
Esempio n. 4
0
        public MainBattleState(BattleSceneController BattleSceneControllerRef)
            : base(BattleSceneControllerRef)
        {
            BattleHud.Get().OnPlayBattleButtonEvent += SetPlayState;
            WindowManager.OnDiscardWindowOpened += SetDiscardState;

            BattleSystem.Get().SetMainBattleState();

            BattleSceneControllerRef.BattleView.SetBattleCardsControlStrategy();
        }
Esempio n. 5
0
 public LoseBattleState(BattleSceneController BattleSceneControllerRef)
     : base(BattleSceneControllerRef)
 {
     BattleSystem.Get().StopBattleTimer();
     BattleHud.Get().OpenWindow <LoseWindow>();
 }