Methapolis
0.27
|
Classes | |
enum | CreateIsland |
Public Member Functions | |
MapGenerator (Micropolis engine) | |
void | generateNewCity () |
void | generateSomeCity (long r) |
Private Member Functions | |
int | getWidth () |
int | getHeight () |
void | makeIsland () |
int | erand (int limit) |
void | makeNakedIsland () |
void | clearMap () |
void | getRandStart () |
void | makeLakes () |
void | doRivers () |
void | doBRiv () |
void | doSRiv () |
void | BRivPlop () |
void | SRivPlop () |
void | putOnMap (char mapChar, int xoff, int yoff) |
void | smoothRiver () |
void | doTrees () |
void | treeSplash (int xloc, int yloc) |
void | moveMap (int dir) |
void | smoothTrees () |
Contains the code for generating a random map terrain.
Definition at line 18 of file MapGenerator.java.
micropolisj.engine.MapGenerator.MapGenerator | ( | Micropolis | engine | ) |
Definition at line 35 of file MapGenerator.java.
References micropolisj.engine.Micropolis.map.
|
private |
Definition at line 339 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.putOnMap().
Referenced by micropolisj.engine.MapGenerator.doBRiv(), micropolisj.engine.MapGenerator.makeLakes(), and micropolisj.engine.MapGenerator.makeNakedIsland().
|
private |
Definition at line 185 of file MapGenerator.java.
|
private |
Definition at line 255 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.BRivPlop(), micropolisj.engine.MapGenerator.moveMap(), and micropolisj.engine.Micropolis.testBounds().
Referenced by micropolisj.engine.MapGenerator.doRivers().
|
private |
Definition at line 239 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.doBRiv(), and micropolisj.engine.MapGenerator.doSRiv().
|
private |
Definition at line 291 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.moveMap(), micropolisj.engine.MapGenerator.SRivPlop(), and micropolisj.engine.Micropolis.testBounds().
Referenced by micropolisj.engine.MapGenerator.doRivers().
|
private |
Definition at line 433 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.getHeight(), micropolisj.engine.MapGenerator.getWidth(), micropolisj.engine.MapGenerator.smoothTrees(), and micropolisj.engine.MapGenerator.treeSplash().
Referenced by micropolisj.engine.MapGenerator.makeIsland().
|
private |
Definition at line 128 of file MapGenerator.java.
Referenced by micropolisj.engine.MapGenerator.makeNakedIsland().
void micropolisj.engine.MapGenerator.generateNewCity | ( | ) |
Generate a random map terrain.
Definition at line 55 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.generateSomeCity().
void micropolisj.engine.MapGenerator.generateSomeCity | ( | long | r | ) |
Definition at line 61 of file MapGenerator.java.
References micropolisj.engine.Micropolis.fireWholeMapChanged().
Referenced by micropolisj.engine.MapGenerator.generateNewCity().
|
private |
Definition at line 47 of file MapGenerator.java.
Referenced by micropolisj.engine.MapGenerator.doTrees(), micropolisj.engine.MapGenerator.getRandStart(), micropolisj.engine.MapGenerator.makeLakes(), and micropolisj.engine.MapGenerator.makeNakedIsland().
|
private |
Definition at line 203 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.getHeight(), and micropolisj.engine.MapGenerator.getWidth().
|
private |
Definition at line 42 of file MapGenerator.java.
Referenced by micropolisj.engine.MapGenerator.doTrees(), micropolisj.engine.MapGenerator.getRandStart(), micropolisj.engine.MapGenerator.makeLakes(), and micropolisj.engine.MapGenerator.makeNakedIsland().
|
private |
Definition at line 121 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.doTrees(), micropolisj.engine.MapGenerator.makeNakedIsland(), and micropolisj.engine.MapGenerator.smoothRiver().
|
private |
Definition at line 212 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.BRivPlop(), micropolisj.engine.MapGenerator.getHeight(), micropolisj.engine.MapGenerator.getWidth(), and micropolisj.engine.MapGenerator.SRivPlop().
|
private |
Definition at line 136 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.BRivPlop(), micropolisj.engine.MapGenerator.erand(), micropolisj.engine.MapGenerator.getHeight(), micropolisj.engine.MapGenerator.getWidth(), and micropolisj.engine.MapGenerator.SRivPlop().
Referenced by micropolisj.engine.MapGenerator.makeIsland().
|
private |
Definition at line 489 of file MapGenerator.java.
Referenced by micropolisj.engine.MapGenerator.doBRiv(), micropolisj.engine.MapGenerator.doSRiv(), and micropolisj.engine.MapGenerator.treeSplash().
|
private |
Definition at line 370 of file MapGenerator.java.
References micropolisj.engine.Micropolis.testBounds().
Referenced by micropolisj.engine.MapGenerator.BRivPlop(), and micropolisj.engine.MapGenerator.SRivPlop().
|
private |
Definition at line 400 of file MapGenerator.java.
References micropolisj.engine.Micropolis.testBounds().
Referenced by micropolisj.engine.MapGenerator.makeIsland().
|
private |
Definition at line 505 of file MapGenerator.java.
References micropolisj.engine.Micropolis.testBounds().
Referenced by micropolisj.engine.MapGenerator.doTrees().
|
private |
Definition at line 359 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.putOnMap().
Referenced by micropolisj.engine.MapGenerator.doSRiv(), micropolisj.engine.MapGenerator.makeLakes(), and micropolisj.engine.MapGenerator.makeNakedIsland().
|
private |
Definition at line 457 of file MapGenerator.java.
References micropolisj.engine.MapGenerator.moveMap(), and micropolisj.engine.Micropolis.testBounds().
Referenced by micropolisj.engine.MapGenerator.doTrees().