Skip to content
Snippets Groups Projects
Commit 173f43e7 authored by ThibautDemare's avatar ThibautDemare
Browse files

create a new 'aspect' to display FCs with different colors according to port of origin

parent 6805603c
Branches
Tags
No related merge requests found
......@@ -207,7 +207,18 @@ species FinalDestinationManager {
aspect base {
draw shape+3°px color: rgb("DarkOrange") ;
}
aspect aspectPortChoice {
if(logisticsServiceProvider != nil and logisticsServiceProvider.provider != nil){
if(logisticsServiceProvider.provider.port = "ANTWERP"){
draw shape+4°px color: rgb("#1b9e77") ;
}
else {
draw shape+4°px color: rgb("#d95f02") ;
}
}
}
action buildRandStock{
// Built its stocks
float freeSurface <- (building.totalSurface - building.occupiedSurface);// The free surface of the building according to the max quantity
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment