Skip to content

Commit

Permalink
Merge branch 'GAMA_1.9.3' of https://github.com/gama-platform/gama in…
Browse files Browse the repository at this point in the history
…to GAMA_1.9.3
  • Loading branch information
AlexisDrogoul committed Feb 21, 2024
2 parents 4ce1e4a + 97eb69b commit 4323a63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ experiment Terrain type: gui {
list<rgb> land_and_sea <- palette(reverse([#darkgreen, #darkgreen, #green, rgb(32, 176, 0), rgb(224, 224, 0), rgb(128, 128, 255), #blue, #blue]));
list<rgb> field_and_forest <- palette(reverse([#sienna, #olive, #darkgreen, #green, #forestgreen, #lightgreen]));
output {
layout #split consoles: false controls: false toolbars: false;
layout #split consoles: false toolbars: false;
display "Terrain" type: 3d axes: false camera: #from_up_front {
mesh terrain color: palette_name = "Seaside" ? land_and_sea : field_and_forest triangulation: true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ global skills:[network] {
reflex receiveAgent when:has_more_message(){
// write "fetch agent on the network";
message mess <- fetch_message();
// write name + " fecth this message: " + mess.contents;

loop agt over: mess.contents as list{
create NetworkingAgent with: [shape::agt["shape"], color::agt["color"]];
}
// Accessing the content of a message unserialised the received object
// In the case of an agent, it is recreated.
write name + " fecth this message: " + mess.contents;

//loop agt over: mess.contents as list{
// create NetworkingAgent with: [shape::agt["shape"], color::agt["color"]];
//}
}
}

Expand Down

0 comments on commit 4323a63

Please sign in to comment.