public void startTiming() {
timeStamp = System.currentTimeMillis();
}
private StendhalMapStructure generateMapStructure(int width, int height) {
LayerDefinition floor = new LayerDefinition(width, height);
floor.setName("0_floor");
floor.build();
LayerDefinition terrain = new LayerDefinition(width, height);
terrain.setName("1_terrain");
LayerDefinition object = new LayerDefinition(width, height);
object.setName("2_object");
LayerDefinition roof = new LayerDefinition(width, height);
roof.setName("3_roof");
LayerDefinition collision = new LayerDefinition(width, height);
collision.setName("collision");
LayerDefinition protection = new LayerDefinition(width, height);
protection.setName("protection");
StendhalMapStructure map = new StendhalMapStructure(width, height);
map.addLayer(floor);
map.addLayer(terrain);