예제 #1
0
 private void goSul(object sender, EventArgs e)
 {
     Comando comando = new Comando(MapDesc.SUL, _cliente, _salaActual, _idJogo);
      comando.Executa();
      TrataBotoesMovimento(MapDesc.SUL);
 }
예제 #2
0
 private void AbreCofre(object sender, EventArgs e)
 {
     if (salaAindaNaoVisitada(_salaActual.Num) == true)
      {
     Comando comando = new Comando(Mensagem.ABRETESOURO, _cliente, _salaActual, _idJogo);
     comando.Executa();
     TrataBotoesMovimento(MapDesc.ABRIR);
     return;
      }
      //Caso já se tenha aberto este cofre
      else
      {
     EscreveLog(Configuration.TEXTO_ABRIR_COFRE_2_VEZES);
     return;
      }
 }