Search in sources :

Example 1 with ROOM_TYPE

use of eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder.ROOM_TYPE in project Eidolons by IDemiurge.

the class LE_MapMaster method newRoom.

public void newRoom(List<Coordinates> coordinates) {
    ROOM_TYPE type = chooseRoomType();
    if (type == null) {
        return;
    }
    if (coordinates == null) {
        coordinates = pickCoordinates();
    }
    MapZone zone = pickZone(coordinates);
    MapBlock b = new MapBlock(getPlan().getBlocks().size(), BLOCK_TYPE.ROOM, zone, getPlan(), coordinates);
    b.setRoomType(type);
    addBlock(b);
}
Also used : ROOM_TYPE(eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder.ROOM_TYPE) MapZone(eidolons.game.battlecraft.logic.dungeon.location.building.MapZone) MapBlock(eidolons.game.battlecraft.logic.dungeon.location.building.MapBlock)

Aggregations

ROOM_TYPE (eidolons.game.battlecraft.logic.dungeon.location.LocationBuilder.ROOM_TYPE)1 MapBlock (eidolons.game.battlecraft.logic.dungeon.location.building.MapBlock)1 MapZone (eidolons.game.battlecraft.logic.dungeon.location.building.MapZone)1