Files
artloglaby/java/org/artisanlogiciel/games/maze/LabyLayers.java
philippe lhardy 6c9800047c load .we with layers
- and fix some bug : max is within range ( perhaps not as many as those added ...)
- quick hack in CharProvider to skip spaces ... ( bad it applies to strings too ...)
2020-11-05 21:31:28 +01:00

27 lines
497 B
Java

package org.artisanlogiciel.games.maze;
import org.artisanlogiciel.games.minetest.Range;
import java.util.HashMap;
public class LabyLayers
extends Range
{
HashMap<Integer,LabyModel> layers = new HashMap<>();
public LabyLayers()
{
super();
}
public void addLabyModel(int z, LabyModel model)
{
updateBounds(z);
layers.put(new Integer(z), model);
}
public LabyModel getLayer(int z)
{
return layers.get(new Integer(z));
}
}