Initial commit.

This commit is contained in:
Woody Folsom
2012-03-06 11:42:35 -05:00
commit 8e83234a87
124 changed files with 9621 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package dk.itu.mario.engine;
import java.util.*;
import dk.itu.mario.level.Level;
public abstract class LevelFactory {
private static Map<String, Level> levels = new HashMap<String, Level>();
public static void register(String name,Level level){
levels.put(name, level);
}
public static Level retrieve(String name){
return levels.get(name);
}
public static Iterator<String> getKeyset(){
return levels.keySet().iterator();
}
public static Map getLevelsMap(){
return levels;
}
}