コード例 #1
0
 protected void perder()
 {
     status = false;
     ganhou = false;
     perdeu = true;
     pontuacao = pontuacao / 2;
     Ranking r = new Ranking(IdUsuario, mostrarPontuacao());
     posicao = r.BuscarPosicaoJogador();
 }
コード例 #2
0
 protected void ganhar()
 {
     status = false;
     ganhou = true;
     perdeu = false;
     pontuacao += pontuacaoNivel[dificuldade];
     Ranking r = new Ranking(IdUsuario, mostrarPontuacao());
     posicao = r.BuscarPosicaoJogador();
 }
コード例 #3
0
 protected void confirmarRemoverPerfil_C(object sender, EventArgs e)
 {
     int id = Convert.ToInt32(Session["id"]);
     Jogador j = new Jogador();
     j.IdUsuario = id;
     Ranking r = new Ranking();
     r.IdUsuario = id;
     r.RemoverJogadorRanking();
     j.RemoverJogador();
     Response.Redirect("~/Interface/" + Convert.ToString(Session["Tipo"]) + "Menu.aspx");
 }