Package net.bytten.metazelda

Examples of net.bytten.metazelda.Dungeon


                        constraints.getMaxKeys();
                } else {
                    roomsPerLock = constraints.getMaxRooms();
                }
                while (true) {
                    dungeon = new Dungeon();
                   
                    // Maps keyLevel -> Rooms that were created when lockCount had that
                    // value
                    levels = new KeyLevelRoomMapping();
                   
View Full Code Here


    @Override
    public void generate() {
        int attempts = 0, currentNonlinearity = Integer.MAX_VALUE;
        int bestAttempt = 0;
        Dungeon currentBest = null;
        while (attempts++ < MAX_ATTEMPTS) {
            super.generate();
           
            int nonlinearity = measureNonlinearity();
            log("Dungeon " + attempts + " nonlinearity: "+
View Full Code Here

TOP

Related Classes of net.bytten.metazelda.Dungeon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.