Search in sources :

Example 1 with Building

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);
}
Also used : Building(de.gg.game.model.entities.Building) BuildingSlot(de.gg.game.model.entities.BuildingSlot)

Aggregations

Building (de.gg.game.model.entities.Building)1 BuildingSlot (de.gg.game.model.entities.BuildingSlot)1