/*
Copyright (C) 2005 David Green <green@couchpotato.net>
All Rights Reserved.

This file is part of Aelfengard.

Aelfengard is proprietary software. You may not redistribute it without
prior written permission from the copyright holder.
*/

package common;

public class CommonUtils {

    public static enum ImageType { NPC }
    
    @SuppressWarnings("unchecked")
    public static <T,U> T uncheckedCast(U o) {
        return (T) o;
    }

    public static boolean isConnected(RoomType... types) {
        for (RoomType type : types) {
            switch (type) {
                case ROAD:
                case ALLEY:
                case BUILDING:
                case DUNGEON: return false;
                default:
            }
        }
        return true;
    }
    
}