Open josauder opened 9 years ago
We then need a function that finds bodies of land. If there is only one body of land (we have an ocean or something) then there is exactly one body of land. If we have e.g. a river seperating our land masses, then we need bridges. A draft for this function can be found in roadmap/config_functions/seperate
Needs to be in
roadmap
submodule as flooded areas have to set the population density to 0.roadmap/config_functions
before or afterroadmap/config_functions/setup_heightmap
would be a good place.Before caring about a GUI we need: A function
flood
which floods the heightmap when water is added at a certain height. It could look something like this:This is called every time the user wants to flood. When supplying a water image, this method has to be called until every flooded pixel was returned by flood() at least once.