void FichasMovidasEvento(object sender, ZinLock.PartidaZinLockEventArgs e) { //desbloquea seleccionar mapaJugador.Bloqueado = false; mapaJugador.ResetPosiciones(); lblMovimientos.Text = "movimientos " + partida.Movimientos; }
static void FichasMoviendoseEvent(ZinLock.TableroZinLock tablero) { puedeMoverse = false; ImprimerPartida(); //sonido moviendose ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.FichaMoviendose); Thread.Sleep(TIEMPOMOVIMIENTOFICHA); }
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); }
static void NuevoNivelEvent(object sender, ZinLock.PartidaZinLockEventArgs e) { ImprimerPartida(); //sonido victoria ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.WinLevel); }
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(); } }
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; } }
void FichasMoviendoseEvento(ZinLock.TableroZinLock tablero) { //actualiza mapa //bloquea seleecionar mapaJugador.Bloqueado = true; mapaJugador.AvanzaPosicion(); mapaJugador.MapaAPintar = partida.Tablero.TableroJugador; ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.FichaMoviendose); }
void VidaPerdidaEvento(object sender, ZinLock.PartidaZinLockEventArgs e) { //actualiza lblVidas lblVidas.Text = "vidas " + partida.Vidas; ZinLock.SonidosZinLock.Play(ZinLock.SonidosZinLock.Sonidos.TimeOut); }
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; }