|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.util.CityBuilder
public class CityBuilder
| Field Summary | |
|---|---|
(package private) static int |
E
|
(package private) static int |
N
|
(package private) static int |
NE
|
(package private) static int |
NW
|
(package private) static int |
S
|
(package private) static int |
SE
|
(package private) static int |
SW
|
(package private) static int |
W
|
| Constructor Summary | |
|---|---|
CityBuilder(MapSettings mapSettings,
IBoard board)
|
|
| Method Summary | |
|---|---|
java.util.ArrayList<BuildingTemplate> |
generateCity(boolean genericRoad)
This function will generate a city with a grid lay out. 4 rounds running North and South and 4 roads running east west |
static int |
getBuildingTypeByCF(int cf)
Utility function for setting building type from CF table |
java.util.ArrayList<BuildingTemplate> |
placeBuildings(int radius)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int N
static final int NE
static final int SE
static final int S
static final int SW
static final int NW
static final int W
static final int E
| Constructor Detail |
|---|
public CityBuilder(MapSettings mapSettings,
IBoard board)
| Method Detail |
|---|
public java.util.ArrayList<BuildingTemplate> generateCity(boolean genericRoad)
buildingTemplate -
public java.util.ArrayList<BuildingTemplate> placeBuildings(int radius)
public static int getBuildingTypeByCF(int cf)
cf -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||