I would like to further elaborate on this problem. Also let me add that I believe
the problem is not limited to Create Agents, but that there also is a problem with
Spacial:Available.
I will include my .metaabm file, and you can see the rules on the Terrain agent.
I had to modify the generated code to be the following:
public void placeCellOccupant() {
if (isBuilding()) {
boolean placeCellOccupantAvailable =
isAvailable(); if (placeCellOccupantAvailable == true) {
Building createBuilding =
(Building) getOneBuilding().getBuilding().getSpace()
.newLocation(false);
createBuilding.moveTo(this);
}
}
}
I left the create space generated code alone, and my building appears fine
so again, I could be wrong there. It just *seems* wrong but likely I am wrong.
But the code that I changed above generates
available() not
isAvailable().
ev