Pacho wrote:There needs to be a way to make new forest tiles. Maybe if there is a high enough concentration of trees those tiles should slowly begin turning into forest tiles?
Raephire wrote:Pacho wrote:There needs to be a way to make new forest tiles. Maybe if there is a high enough concentration of trees those tiles should slowly begin turning into forest tiles?
agreed. And reduction of trees would turn it into grassland, - The minimap doesnt have to match this, but forest animals should spawn accordingly.
// called when users plant trees or when trees reproduce themselves
void plantTree(TreeType treeType, Coords coords) {
Tree tree = createTreeObjectInDatabase(treeType, coords)
Date nextReproductionCheck = getRandomReproductionCheckDate()
//treeQueue is a thread safe, sorted list, sorts on the first parameter
treeQueue.put(nextReproductionCheck, tree)
}
// called by a thread with low priority whenever the
void processTreeReproductionCheck(Tree tree)
{
if (checkTreeAreaHasSpace(tree))
{
Coords newTreeSpot = getRandomTreeSpace(tree.getCoords())
plantTree(tree.getType(), newTreeSpot)
}
Date nextReproductionCheck = getRandomReproductionCheckDate()
//treeQueue is a thread safe, sorted list, sorts on the first parameter
treeQueue.put(nextReproductionCheck, tree)
}
Pacho wrote:I don't know if I'm seeing things, but I swear there are forest tiles appearing in this backyard forest I'm growing. Am I just hallucinating because I'm dreaming, or is it just that I'm so tired
Users browsing this forum: Barkrowler [Bot], Claude [Bot] and 3 guests