Splash trees around the world. */
| 328 | |
| 329 | /** Splash trees around the world. */ |
| 330 | void 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 | |
| 351 | void Micropolis::smoothRiver() |
nothing calls this directly
no outgoing calls
no test coverage detected