Package com.jcloisterzone.ui.resources

Examples of com.jcloisterzone.ui.resources.ResourceManager


    }

    public void tileEvent(TileEvent ev) {
        Tile tile = ev.getTile();
        if (ev.getType() == TileEvent.PLACEMENT) {
            ResourceManager resourceManager = getClient().getResourceManager();
            Set<Location> farmLocations = new HashSet<>();
            for (Feature f : tile.getFeatures()) {
                if (f instanceof Farm) {
                    farmLocations.add(f.getLocation());
                }
            }
            if (farmLocations.isEmpty()) return;
            Map<Location, Area> tAreas = resourceManager.getFeatureAreas(tile, FULL_SIZE, farmLocations);
            areas.put(tile, tAreas);
            refreshHints();
        }
        if (ev.getType() == TileEvent.REMOVE) {
            areas.remove(tile);
View Full Code Here

TOP

Related Classes of com.jcloisterzone.ui.resources.ResourceManager

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.