use of de.gg.game.model.entities.Building in project ProjektGG by eskalon.
the class WorldGenerator method generateBuildings.
private void generateBuildings() {
// Building-Slots
world.buildingSlots = map.getBuildingSlots().toArray(new BuildingSlot[0]);
// [Test] Buildings
BuildingSlot slot = world.buildingSlots[0];
Building b = new Building();
b.setType(BuildingType.FORGE_1);
slot.setBuilding(b);
slot = world.buildingSlots[1];
b = new Building();
b.setType(BuildingType.TOWN_HALL);
slot.setBuilding(b);
}
Aggregations