Skip to content

Commit

Permalink
Mañic into Capy
Browse files Browse the repository at this point in the history
  • Loading branch information
danielferro69 committed Jun 5, 2023
2 parents a436ff9 + 2c356b9 commit d15ffee
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 17 deletions.
File renamed without changes
2 changes: 1 addition & 1 deletion src/comportamientos/ObservoEstrella.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ObservoEstrella extends Interactuar {

configurarVerificaciones(): void {
super.configurarVerificaciones()
this.verificacionesPre.push(new Verificacion(() => !this.objetoInteractuado().vuela, "No puede volar dos veces la misma estrella"))
this.verificacionesPre.push(new Verificacion(() => !this.objetoInteractuado().observada, "Ya observé esta estrella"))
}

}
2 changes: 1 addition & 1 deletion src/comportamientos/ObservoPlaneta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ObservoPlaneta extends Interactuar {

configurarVerificaciones(): void {
super.configurarVerificaciones()
this.verificacionesPre.push(new Verificacion(() => !this.objetoInteractuado().orbita, "No puede hacer orbitar dos veces el mismo planeta"))
this.verificacionesPre.push(new Verificacion(() => !this.objetoInteractuado().observado, "Ya observé este planeta"))
}

}
5 changes: 2 additions & 3 deletions src/comportamientos/OrbitarVolar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ class OrbitarVolar extends ComportamientoAnimado {
protected orbitar(radio: number,
velocidad: number): void {

if (!this.receptor.orbita) {
this.receptor.orbita = true
if (!this.receptor.observado) {
this.receptor.observado = true
this.pos_x = this.receptor.x
this.radio = radio
this.velocidad = velocidad
this.angulo = 0
this.receptor.olvidar(Flotar)
this.receptor.cargarAnimacion("recoger")
//this.receptor.aprender(RotarContinuamente, { gradosDeAumentoStep: -2 } )
}
else
{
Expand Down
8 changes: 0 additions & 8 deletions src/comportamientos/RepararTelescopio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@

class RepararTelescopio extends Reparar {

public nombreAnimacion(): String {
return "recoger"
}

public nombreProximaAnimacion(): string {
return "arreglado"
}

configurarVerificaciones() {
super.configurarVerificaciones()

Expand Down
4 changes: 2 additions & 2 deletions src/comportamientos/Volar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class Volar extends ComportamientoAnimado {
protected volar(aceleracion: number,
gradosDeAumentoStep: number): void {

if (!this.receptor.vuela) {
this.receptor.vuela = true
if (!this.receptor.observada) {
this.receptor.observada = true
this.aceleracion = aceleracion
this.contador = Math.random() * 3
this.alturaOriginal = this.receptor.y
Expand Down
3 changes: 1 addition & 2 deletions src/escenas/LaReparadoraDeTelescopios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ class LaReparadoraDeTelescopios extends EscenaActividad {

this.automata = new Manic();

this.ajustarAutomata()
this.automata.aprender(Flotar, {Desvio: 5});
this.agregarTelescopios(this.filasACompletar())
this.ajustarAutomata()

}

Expand Down

0 comments on commit d15ffee

Please sign in to comment.