Package net.bytten.metazelda

Examples of net.bytten.metazelda.Room


        }
       
        normalizeIntensity();
       
        dungeon.findBoss().setIntensity(1.0);
        Room goalRoom = dungeon.findGoal();
        if (goalRoom != null)
            goalRoom.setIntensity(0.0);
    }
View Full Code Here


            if (item.getValue() >= 0 && item.getValue() < keyRooms.size())
                keyRooms.set(item.getValue(), room);
        }
        // for N >= 0: keyRooms[N] = location of key N
       
        Room current = dungeon.findStart(),
                goal = dungeon.findGoal();
        // Clients may disable generation of the goal room -- the equivalent
        // 'ending' room becomes the boss room.
        if (goal == null) goal = dungeon.findBoss();
        assert current != null && goal != null;
        int nextKey = 0, nonlinearity = 0;
       
        Set<Integer> visitedRooms = new TreeSet<Integer>();
        while (current != goal) {
            Room intermediateGoal;
            if (nextKey == constraints.getMaxKeys())
                intermediateGoal = goal;
            else
                intermediateGoal = keyRooms.get(nextKey);
           
View Full Code Here

TOP

Related Classes of net.bytten.metazelda.Room

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.