Example #1
0
        protected bool ExecutarOpcoes(string acao, List <string> passageiros)
        {
            switch (acao)
            {
            case Biblioteca.INICIAR_TRANSPORTE:
                smartForTwo.TrafegarPassageiros(passageiros);
                return(EhFimJogo(builderPassageiros.ListaPassageiros));

            case Biblioteca.MOSTRAR_REGRAS:
                instrucoes.MostrarRegras();
                break;

            case Biblioteca.SAIR:
                return(true);

            case Biblioteca.FALHA:
                builderTexto.LancarMensagemDeAtencao(string.Format("{0},{1}", Biblioteca.UMA_DAS_OPCOES, Biblioteca.OPCOES), Biblioteca.OPERACAO_INVALIDA);
                break;
            }

            return(false);
        }