package com.kehxstudios.atlas.type;

import com.kehxstudios.atlas.screens.AScreen;
import com.kehxstudios.atlas.screens.FlappyBatScreen;
import com.kehxstudios.atlas.screens.IntroScreen;
import com.kehxstudios.atlas.screens.MainMenuScreen;

import java.util.HashMap;

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

public enum ScreenType {

    INTRO("Intro", "texturePacks/intro.atlas", 512, 910, IntroScreen.class),
    MAIN_MENU("MainMenu", "texturePacks/mainMenu.atlas", 1440, 2560, MainMenuScreen.class),
    FLAPPY_BAT("FlappyBat", "texturePacks/flappyBat.atlas", 240, 400, FlappyBatScreen.class),
    VOID("Void", "-", 0, 0, AScreen.class);

    private String id, path;
    private float width, height;
    public Class loaderClass;

    private ScreenType(String id, String path, float width, float height, Class loaderClass) {
        this.id = id;
        this.path = path;
        this.width = width;
        this.height = height;
        this.loaderClass = loaderClass;
    }

    public String getId() { return id; }

    public String getPath() { return path; }

    public float getWidth() { return width; }

    public float getHeight() { return height; }

    public Class getLoaderClass() { return loaderClass; }

    public static ScreenType getTypeById(String id) {
        return screenTypes.get(id);
    }

    private static HashMap<String, ScreenType> screenTypes;

    static {
        screenTypes = new HashMap<String, ScreenType>();
        for (ScreenType type : ScreenType.values()) {
            screenTypes.put(type.id, type);
        }
    }
}

@@ -590,24 +590,119 @@
 een.class),%0A
+    SMART_ROCKETS(%22SmartRockets%22, %22texturePacks/smartRockets.atlas%22, 512, 910, AScreen.class),%0A
     VOID(%22Vo
@@ -757,17 +757,22 @@
 ing id, 
-p
+atlasP
 ath;%0A   
@@ -873,17 +873,22 @@
  String 
-p
+atlasP
 ath, flo
@@ -971,16 +971,26 @@
 his.
-path = p
+atlasPath = atlasP
 ath;
@@ -1158,16 +1158,21 @@
 ring get
+Atlas
 Path() %7B
@@ -1179,17 +1179,22 @@
  return 
-p
+atlasP
 ath; %7D%0A%0A

Update ScreenType.java