Class SpriteFactory


  • public class SpriteFactory
    extends Object
    • Constructor Detail

      • SpriteFactory

        public SpriteFactory()
    • Method Detail

      • makeSprite

        public BufferedImage makeSprite​(IconType type,
                                        int id,
                                        int color1Id,
                                        int color2Id,
                                        boolean withGlowOutline)
      • create

        public static SpriteFactory create()
                                    throws SpriteLoadException
        Creates a new sprite factory. This method will load the sprite images in memory, that's why an IOException needs to be checked when calling this method.
        Returns:
        the sprite factory
        Throws:
        SpriteLoadException - if something goes wrong when loading the sprites.