package com.ezardlabs.dethsquare;

import java.util.HashMap;

public class LevelManager {
	private static HashMap<String, Level> levels = new HashMap<>();

	public static void registerLevel(String name, Level level) {
		levels.put(name, level);
	}

	public static void loadLevel(String name) {
		Level level = levels.get(name);
		level.onLoad();

		GameObject.startAll();
		Renderer.init();
		Collider.init();
	}
}

@@ -147,16 +147,57 @@
 Map%3C%3E();
+%0A%09private static String currentLevelName;
 %0A%0A%09publi
@@ -328,16 +328,44 @@
 name) %7B%0A
+%09%09currentLevelName = name;%0A%0A
 %09%09Level 
@@ -453,16 +453,16 @@
 init();%0A
-
 %09%09Collid
@@ -474,11 +474,222 @@
 it();%0A%09%7D
+%0A%0A%09public static Level getCurrentLevel() %7B%0A%09%09if (currentLevelName == null) return null;%0A%09%09else return levels.get(currentLevelName);%0A%09%7D%0A%0A%09public static String getCurrentLevelName() %7B%0A%09%09return currentLevelName;%0A%09%7D
 %0A%7D%0A

Add ability to get the current level and current level's name