MCPcopy Create free account
hub / github.com/SimHacker/micropolis / doTrees

Method doTrees

MicropolisCore/src/MicropolisEngine/src/generate.cpp:330–348  ·  view source on GitHub ↗

Splash trees around the world. */

Source from the content-addressed store, hash-verified

328
329/** Splash trees around the world. */
330void Micropolis::doTrees()
331{
332 short Amount, x, xloc, yloc;
333
334 if (terrainTreeLevel < 0) {
335 Amount = getRandom(100) + 50;
336 } else {
337 Amount = terrainTreeLevel + 3;
338 }
339
340 for (x = 0; x < Amount; x++) {
341 xloc = getRandom(WORLD_W - 1);
342 yloc = getRandom(WORLD_H - 1);
343 treeSplash(xloc, yloc);
344 }
345
346 smoothTrees();
347 smoothTrees();
348}
349
350
351void Micropolis::smoothRiver()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected