Skip to content

Commit

Permalink
Borro mensaje extra (transportarMenas)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoCraviotto committed May 9, 2021
1 parent 7420413 commit 40ca8c9
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions 01-Factorio/TP_Factorio.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ cantidadDeMenasDeCarbon
cantidadDeMenasDeHierro
^contenido count: [:cadaElemento | cadaElemento = 'una mena de hierro'].! !

!Caja class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:26:57'!
!Caja class methodsFor: 'as yet unclassified' stamp: 'MC 5/8/2021 22:38:57'!
initializeCollaboratorsFromFile
"Auto generated method for loading purposes - Do not modify it"

contenido := ((OrderedCollection new) add: 'una mena de carbon'; add: 'una mena de hierro'; yourself).! !
contenido := ((OrderedCollection new) add: 'una mena de carbon'; yourself).! !

!Caja class methodsFor: 'as yet unclassified' stamp: 'MC 5/4/2021 22:52:37'!
recibirMenas: coleccionDeMenas
Expand Down Expand Up @@ -67,7 +67,7 @@ cantidadDeMenas
destino: nuevoDestino
destino := nuevoDestino.! !

!CintaA class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:26:57'!
!CintaA class methodsFor: 'as yet unclassified' stamp: 'MC 5/8/2021 22:38:57'!
initializeCollaboratorsFromFile
"Auto generated method for loading purposes - Do not modify it"

Expand All @@ -78,19 +78,14 @@ initializeCollaboratorsFromFile
recibirMenas: coleccionDeMenas
^contenido addAll: coleccionDeMenas.! !

!CintaA class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:08:37'!
!CintaA class methodsFor: 'as yet unclassified' stamp: 'MC 5/8/2021 22:20:05'!
transportarContenido
"Trabsporta lo almacenado en contenido"
"Transporta lo almacenado en contenido"
|contenidoActual|
contenidoActual := contenido.
self vaciar.
destino recibirMenas: contenidoActual.! !

!CintaA class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:07:44'!
transportarMenas: coleccionDeMenas
"Transporta las menas recibidas directamente sin almacenarlas"
destino recibirMenas: coleccionDeMenas.! !

!CintaA class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:04:30'!
vaciar
contenido := OrderedCollection new.! !
Expand All @@ -117,7 +112,7 @@ cantidadDeMenas
destino: nuevoDestino
destino := nuevoDestino.! !

!CintaB class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:26:57'!
!CintaB class methodsFor: 'as yet unclassified' stamp: 'MC 5/8/2021 22:38:57'!
initializeCollaboratorsFromFile
"Auto generated method for loading purposes - Do not modify it"

Expand All @@ -128,19 +123,14 @@ initializeCollaboratorsFromFile
recibirMenas: coleccionDeMenas
^contenido addAll: coleccionDeMenas.! !

!CintaB class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:11:32'!
!CintaB class methodsFor: 'as yet unclassified' stamp: 'MC 5/8/2021 22:36:35'!
transportarContenido
"Trabsporta lo almacenado en contenido"
"Transporta lo almacenado en contenido"
|contenidoActual|
contenidoActual := contenido.
self vaciar.
destino recibirMenas: contenidoActual.! !

!CintaB class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:11:32'!
transportarMenas: coleccionDeMenas
"Transporta las menas recibidas directamente sin almacenarlas"
destino recibirMenas: coleccionDeMenas.! !

!CintaB class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:11:32'!
vaciar
contenido := OrderedCollection new.! !
Expand Down Expand Up @@ -196,7 +186,7 @@ extraer
self sacarEnergia: energiaConsumida.
^destino recibirMenas: (self conjuntoDeMenasDeCarbonCantidad: cantidadDeMenas).! !

!ExtractorDeCarbon class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:26:57'!
!ExtractorDeCarbon class methodsFor: 'as yet unclassified' stamp: 'MC 5/8/2021 22:38:57'!
initializeCollaboratorsFromFile
"Auto generated method for loading purposes - Do not modify it"

Expand Down Expand Up @@ -266,7 +256,7 @@ extraer
self sacarEnergia: energiaConsumida.
^destino recibirMenas: (self conjuntoDeMenasDeHierroCantidad: cantidadDeMenas).! !

!ExtractorDeHierro class methodsFor: 'as yet unclassified' stamp: 'ML 5/7/2021 18:26:57'!
!ExtractorDeHierro class methodsFor: 'as yet unclassified' stamp: 'MC 5/8/2021 22:38:57'!
initializeCollaboratorsFromFile
"Auto generated method for loading purposes - Do not modify it"

Expand Down

0 comments on commit 40ca8c9

Please sign in to comment.