Ejemplo n.º 1
0
 private void OnChangeTurn(PlayerTurn m_Turn)
 {
     if (ChangeTurn != null)
     {
         ChangeTurn.Invoke(m_Turn);
     }
 }
Ejemplo n.º 2
0
    private void SwitchTurn()
    {
        if (_currentTurn == Turn.PLAYER)
        {
            _currentTurn = Turn.OPPONENT;
        }
        else
        {
            _currentTurn = Turn.PLAYER;
        }

        ChangeTurn.Invoke(_currentTurn);
    }
Ejemplo n.º 3
0
        public Battle(Pokemon playerPokemon, Pokemon opponentPokemon)
        {
            this.playerPokemon   = playerPokemon;
            this.opponentPokemon = opponentPokemon;

            combatText       = new CombatTextManager(this);
            animationManager = new AnimationManager(this);
            intro            = new Intro(this);
            selectAction     = new SelectAction(this);
            selectMove       = new SelectMove(this);
            changeAction     = new ChangeTurn(this);
            end          = new End(this);
            playerTurn   = new PlayerTurn(this);
            opponentTurn = new OpponentTurn(this);
            curentState  = intro;
        }