void FichasMovidasEvento(object sender, ZinLock.PartidaZinLockEventArgs e) { //desbloquea seleccionar mapaJugador.Bloqueado = false; mapaJugador.ResetPosiciones(); lblMovimientos.Text = "movimientos " + partida.Movimientos; }
void NuevoNivelEvento(object sender, ZinLock.PartidaZinLockEventArgs e) { //actualiza todo mapaJugador.MapaAPintar = partida.Tablero.TableroJugador; mapaSolucion.MapaAPintar = partida.Tablero.TableroSolucionado; mapaJugador.Bloqueado = false; mapaJugador.ResetPosiciones(); lblMovimientos.Text = "movimientos " + partida.Movimientos; if (partida.NivelCanon != -1) { lblNivel.Text = "nivel " + partida.NivelCanon; } else { lblNivel.Text = "nivel " + partida.NivelExtra; } }
void FinPartidaEvento(object sender, ZinLock.PartidaZinLockEventArgs e) { if (!e.Ganada) { MessageBox.Show("Has Perdido!!"); mapaJugador.Bloqueado = true; this.Close(); } else if (partida.NivelCanon < 25) { ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.WinLevel); } else { MessageBox.Show("Que crac te lo has pasado :)"); mapaJugador.Bloqueado = true; } }
static void FinPartidaEvent(object sender, ZinLock.PartidaZinLockEventArgs e) { Console.Clear(); if (!e.Ganada) { Console.WriteLine("Has perdido :C Nivel{0}", partida.NivelCanon); Console.ReadKey(); partidaOn = false; jugador.Atura(); } else if (partida.NivelCanon < 25) { Console.WriteLine("Nivel superado :D"); } else { Console.WriteLine("Has cabado :D"); partidaOn = false; jugador.Atura(); } }
static void NuevoNivelEvent(object sender, ZinLock.PartidaZinLockEventArgs e) { ImprimerPartida(); //sonido victoria ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.WinLevel); }
static void FinFichasMovidas(object sender, ZinLock.PartidaZinLockEventArgs e) { puedeMoverse = true; ImprimerPartida(); }
static void SonidoVidaPerdidoEvent(object sender, ZinLock.PartidaZinLockEventArgs e) { ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.TimeOut); }
void VidaPerdidaEvento(object sender, ZinLock.PartidaZinLockEventArgs e) { //actualiza lblVidas lblVidas.Text = "vidas " + partida.Vidas; ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.TimeOut); }