Skip to content

Commit

Permalink
Updated the ECEC model to use the new PoV methods
Browse files Browse the repository at this point in the history
  • Loading branch information
olekscode committed Aug 31, 2024
1 parent e892cc8 commit 72661a2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/ECEC-Model/ECECModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ ECECModel >> homogeneousEnvironment [

self theVegetationUnits do: [ :each | each initializeWithRandomBiomass ].

self
initializeAgents;
displayPov: #povBiomass of: ECECVegetationUnit;
displayPov: #defaultPOV of: ECECForager
self initializeAgents.

ECECVegetationUnit activePovSelector: #povBiomass.
ECECForager activePovSelector: #defaultPOV
]

{ #category : 'initialization' }
Expand Down Expand Up @@ -141,9 +141,8 @@ ECECModel >> smallEnvironment [
createN: 1
randomlyLocatedAloneEntities: ECECUnrestrainedForager.

self
displayPov: #povBiomass of: ECECVegetationUnit;
displayPov: #defaultPOV of: ECECForager
ECECVegetationUnit activePovSelector: #povBiomass.
ECECForager activePovSelector: #defaultPOV
]

{ #category : 'control' }
Expand Down

0 comments on commit 72661a2

Please sign in to comment.