originPoints.put(new Long(2), new Point3d(2, 0, -4));
originPoints.put(new Long(3), new Point3d(-4, 0, 2));
}
public UniverseState createRandomUniverseState(int nbTrees) {
TreeStateFactory treeStateFactory = new TreeStateFactory();
Set<TreeState> trees = new HashSet<TreeState>(nbTrees);
for (int i = 0; i < nbTrees; i++) {
int nbBranches = Randomizer.randomBetween(30, 50);
float height = Randomizer.randomBetween(3, 5);
Point3d translationVector = originPoints.get(new Long(i));
trees.add(treeStateFactory.createRandomTreeState(translationVector, nbBranches, height));
}
Set<TreeLeafState> fallenLeaves = new HashSet<TreeLeafState>(0);
EnvironmentStateFactory envStateFactory = new EnvironmentStateFactory();
EnvironmentState environment = envStateFactory.createEnvironmentState();