Esempio n. 1
0
 //Metodos para agregar entidad en el tablero
 public void AgregarEntidadEnCasillero(Entidad entidad, int x, int y)
 {
     try
     {
         Casillero casillero = ObtenerCasillero(x, y);
         casillero.Entidad = entidad;
         entidad.Posicion = casillero;
         entidad.Tablero = this;
         if (entidad.EsBombita()) posicionBombita = casillero;
     }
     catch (CasilleroFueraDeRangoException e)
     {
         throw e;
     }
 }
Esempio n. 2
0
 public Casillero(int x, int y)
 {
     this.fila = x;
     this.columna = y;
     this.entidad = null;
 }