diff --git a/package-lock.json b/package-lock.json index 40449c9..ecf05ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pilas-bloques-exercises", - "version": "1.4.33", + "version": "1.4.34", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7d36f30..4b8b69d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pilas-bloques-exercises", - "version": "1.4.33", + "version": "1.4.34", "description": "Exercises for Pilas Bloques", "homepage": "http://pilasbloques.program.ar", "author": { diff --git a/src/actores/ActorAnimado.ts b/src/actores/ActorAnimado.ts index 21bb7a3..9c550c1 100644 --- a/src/actores/ActorAnimado.ts +++ b/src/actores/ActorAnimado.ts @@ -175,6 +175,22 @@ class ActorAnimado extends Actor { return !this.casillaActual().hayAbajo() && !this.casillaActual().hayDerecha(); } + enBordeArriba(): boolean { + return !this.casillaActual().hayArriba() + } + + enBordeAbajo(): boolean { + return !this.casillaActual().hayAbajo() + } + + enBordeIzquierdo(): boolean { + return !this.casillaActual().hayIzquierda() + } + + enBordeDerecho(): boolean { + return !this.casillaActual().hayDerecha() + } + estoyUltimaFila(): boolean { return this.cuadricula.cantFilas - 1 == this.casillaActual().nroFila; }