Example #1
0
 public ClsMainPageVM()
 {
     _mazmorra    = new ClsTablero();
     _player      = new ClsPlayer();
     _alien       = new ClsAlien();
     _keyFound    = false;
     _srcKeyImage = "/Assets/black_key.png";
     _repeat      = false;
     _imageBlood  = "";
 }
Example #2
0
 /// <summary>
 /// Comentario: Este método nos permite reiniciar la mazmorra.
 /// </summary>
 public void newDungeon()
 {
     Proximidad = 0;
     _mazmorra  = new ClsTablero();
     NotifyPropertyChanged("Mazmorra");
     _player.Position = new ClsPunto(0, 0);
     _alien           = new ClsAlien();
     _keyFound        = false;
     _srcKeyImage     = "/Assets/black_key.png";
     NotifyPropertyChanged("SrcKeyImage");
 }
Example #3
0
 /// <summary>
 /// Reinicia el juego una vez haya terminado. Es decir, comenzar todo de nuevo.
 /// </summary>
 public void ReiniciarJuego()
 {
     Proximidad        = 0;
     Mazmorra          = new ClsTablero();
     Player            = new ClsPlayer();
     Alien             = new ClsAlien();
     CompletedDungeons = 0;
     _keyFound         = false;
     SrcKeyImage       = "/Assets/black_key.png";
     ImageBlood        = "";
     Repeat            = false;
     asignarSonidos();
 }