Package scotlandyard.shared.messaging

Examples of scotlandyard.shared.messaging.MessagePedirResposta


      System.out.println("GAMEMANAGER: Movendo jogador.");
      game.sendMessage (movimento);
      //checks if destination is door and sends the proper message
      if (destination == DefaultBoardState.START_POSITION){
        System.out.println("\n\nGAMEMANAGER: PEDINDO RESPOSTA...\n\n");
        MessagePedirResposta msg = new MessagePedirResposta(
            player.getName(),
            MainServer.getMainServerInstance().getDbManager().perguntas(game.getCaso())
        );   
        game.sendPrivateMessage(player, msg);
      }else{
View Full Code Here


            //TO-DO
            //Remover peao do jogador desconectado
            //Atualizar TurnManager
          }
          else if (type == MessageType.PEDIR_RESPOSTA){
            MessagePedirResposta msgg = (MessagePedirResposta)message;
            //pedir resposta
            System.out.println("ME PEDIRAM RESPOSTA.");
            myGame.setPerguntas(msgg.getPerguntas());
           
            myGame.proximaResposta();
            //new ResponderDialog (myGame, perguntasRespondidas, msgg.getPergunta(i))
          }
          else if(type == MessageType.MOSTRAR_RESPOSTAS){
View Full Code Here

TOP

Related Classes of scotlandyard.shared.messaging.MessagePedirResposta

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.