changed tile array to three-dimensional array (i0=map; i1=col; i2=row)
This commit is contained in:
23
src/de/miaurizius/jgame2d/core/enums/Map.java
Normal file
23
src/de/miaurizius/jgame2d/core/enums/Map.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package de.miaurizius.jgame2d.core.enums;
|
||||
|
||||
public enum Map {
|
||||
|
||||
OVERWORLD("world3", 0),
|
||||
HUT("hut", 1);
|
||||
|
||||
private final String name;
|
||||
private final int index;
|
||||
|
||||
Map(String name, int index) {
|
||||
this.name = name;
|
||||
this.index = index;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public int getIndex() {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user