You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
356 B
22 lines
356 B
3 years ago
|
package sig.map;
|
||
3 years ago
|
|
||
|
import java.io.File;
|
||
|
|
||
|
public enum Maps {
|
||
|
|
||
|
WORLD1("world1.map"),
|
||
|
;
|
||
|
|
||
|
final public static String MAPS_DIR = "maps";
|
||
|
Map map;
|
||
|
|
||
|
Maps(String filename) {
|
||
|
File map_loc = new File(new File("..",MAPS_DIR),filename);
|
||
|
this.map=Map.LoadMap(map_loc);
|
||
|
}
|
||
|
|
||
|
public Map getMap() {
|
||
|
return map;
|
||
|
}
|
||
|
}
|