Examples of SpriteSheet


Examples of org.newdawn.slick.SpriteSheet

    }

    public static SpriteSheet getFireTruckSpriteSheet() {
        if (fireTruckSprite == null) {
            try {
                fireTruckSprite = new SpriteSheet("data/sprites/fireTruck.png", 32, 32, Color.magenta);
            } catch (SlickException ex) {
                Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return fireTruckSprite;
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    public static SpriteSheet getGrayedFireTruckSpriteSheet() {
        if (fireTruckGrayedSprite == null) {
            try {
                fireTruckGrayedSprite = new SpriteSheet("data/sprites/sprites-bomberos-weak.png", 32, 32, Color.magenta);
            } catch (SlickException ex) {
                Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return fireTruckGrayedSprite;
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    public static SpriteSheet getPoliceCarSpriteSheet() {
        if (policeCarSprite == null) {
            try {
                policeCarSprite = new SpriteSheet("data/sprites/policeCar.png", 32, 32, Color.magenta);
            } catch (SlickException ex) {
                Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return policeCarSprite;
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    private static SpriteSheet getHighlightedHospitalSpriteSheet() {
        if (highlightedHospitalSprite == null) {
            try {
                highlightedHospitalSprite = new SpriteSheet("data/sprites/hospital-brillando.png", 64, 80, Color.magenta);
            } catch (SlickException ex) {
                Logger.getLogger(AnimationFactory.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return highlightedHospitalSprite;
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    private static SpriteSheet getHighlightedFirefighterDepartmentSpriteSheet() {
        if (highlightedFireFighterDepartmentSprite == null) {
            try {
                highlightedFireFighterDepartmentSprite = new SpriteSheet("data/sprites/bombero-brillando.png", 64, 80, Color.magenta);
            } catch (SlickException ex) {
                Logger.getLogger(AnimationFactory.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return highlightedFireFighterDepartmentSprite;
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    private static SpriteSheet getFireEmergencyStatusSpriteSheet(String percentage) {

        try {
            fireEmergencyStatusSprite = new SpriteSheet("data/sprites/fire-" + percentage + ".png", 143, 28, Color.magenta);
        } catch (SlickException ex) {
            Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
        }
        return fireEmergencyStatusSprite;
    }
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }
    private static SpriteSheet getHeartAttackEmergencyStatusSpriteSheet(String percentage) {

        try {
            if(!percentage.equals("00")){
                heartAttackEmergencyStatusSprite = new SpriteSheet("data/sprites/people-x.png", 78, 28, Color.magenta);
            } else{
                heartAttackEmergencyStatusSprite = new SpriteSheet("data/sprites/people-ok.png", 78, 28, Color.magenta);
            }
           
        } catch (SlickException ex) {
            Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    private static SpriteSheet getMenuBarSpriteSheet() {

        try {
            menuBarSprite = new SpriteSheet("data/sprites/menu-bar.png", 640, 48, Color.magenta);
        } catch (SlickException ex) {
            Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
        }

        return menuBarSprite;
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    private static SpriteSheet getEmergencySpriteSheet(EmergencyType type) {
        if (!emergencySprites.containsKey(type)) {
            try {
                emergencySprites.put(type, new SpriteSheet("data/sprites/alert-" + type.name() + ".png", 32, 32, Color.magenta));
            } catch (SlickException ex) {
                Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return emergencySprites.get(type);
View Full Code Here

Examples of org.newdawn.slick.SpriteSheet

    }

    private static SpriteSheet getGlowSpriteSheet() {
        if (glowSprites == null) {
            try {
                glowSprites = new SpriteSheet("data/sprites/glow.png", 32, 32, Color.magenta);
            } catch (SlickException ex) {
                Logger.getLogger(GraphicableFactory.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return glowSprites;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.