package com.kehxstudios.atlas.type;

import java.util.HashMap;

/**
 * Created by ReidC on 2017-04-19.
 */

public enum TextureType {

    DEV_LOGO("DevLogo", "devLogo", 512, 512),
    GAME_LOGO("GameLogo","gameLogo", 512, 512),

    MAIN_MENU_BACKGROUND("MainMenuBackground", "background", 1440, 2560),
    MAIN_MENU_BORDER("MainMenuBorders", "menuBorder", 625, 435),

    FLAPPY_BAT_BACKGROUND("FlappyBatBackground", "background", 288, 512),
    FLAPPY_BAT_BAT("FlappyBatBird", "bat", 34, 24),
    FLAPPY_BAT_WALL("FlappyBatWall",  "wall", 32, 320),
    FLAPPY_BAT_GROUND("FlappyBatGround", "ground", 366, 112),

    VOID("Void", "void", 0, 0);

    private String id, fileName;
    private float width, height;

    private static HashMap<String, TextureType> textureTypes;

    private TextureType(String id, String fileName, float width, float height) {
        this.id = id;
        this.fileName = fileName;
        this.width = width;
        this.height = height;
    }

    public String getId() {
        return id;
    }

    public String getFileName() { return fileName; }

    public float getWidth() { return width; }

    public float getHeight() { return height; }

    public static TextureType getTypeFromId(String id) {
        return textureTypes.get(id);
    }

    static {
        textureTypes = new HashMap<String, TextureType>();
        for (TextureType type : TextureType.values()) {
            textureTypes.put(type.getId(), type);
        }
    }
}

@@ -132,16 +132,22 @@
  %7B%0A%0A    
+INTRO_
 DEV_LOGO
@@ -148,16 +148,21 @@
 V_LOGO(%22
+Intro
 DevLogo%22
@@ -189,16 +189,22 @@
 2),%0A    
+INTRO_
 GAME_LOG
@@ -206,16 +206,21 @@
 E_LOGO(%22
+Intro
 GameLogo
@@ -355,17 +355,16 @@
 nuBorder
-s
 %22, %22menu
@@ -492,11 +492,10 @@
 BatB
-ird
+at
 %22, %22

Update TextureType.java