// Path: core/src/main/java/de/brainstormsoftworks/taloonerrl/dungeon/Generator.java
// public abstract class Generator {
// 
// 	/**
// 	 * generates the level layout in the given map
// 	 *
// 	 * @param map
// 	 *            map to operate the generation on
// 	 * @param _tilesHorizontal
// 	 *            number of horizontal tiles in the map
// 	 * @param _tilesVertical
// 	 *            number of vertical tiles in the map
// 	 */
// 	public abstract void generate(final char[][] map, final int _tilesHorizontal, final int _tilesVertical);
// }


import de.brainstormsoftworks.taloonerrl.dungeon.Generator;
import lombok.Getter;

/*******************************************************************************
 * Copyright (c) 2017 David Becker.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 * Contributors:
 *     David Becker - initial API and implementation
 ******************************************************************************/
package de.brainstormsoftworks.taloonerrl.internal.dungeon;


/**
 * test generator to generate a map from a unit test to walk about
 *
 * @author David Becker
 *
 */
public class GeneratorTest extends Generator {

	@Getter
	private static GeneratorTest instance = new GeneratorTest();

	@Override
	public void generate(final char[][] map, final int _tilesHorizontal, final int _tilesVertical) {
		for (int x = 0; x < _tilesHorizontal; x++) {
			for (int y = 0; y < _tilesVertical; y++) {
				map[x][y] = '.';
			}
		}
		for (int xy = 1; xy < 6; xy++) {
			map[xy][3] = '#';
			map[3][xy] = '#';
		}
		map[2][2] = '#';
		map[2][4] = '#';
		map[4][2] = '#';
		map[4][4] = '#';
		map[4][4] = '#';

		map[3][3] = '.';


// Path: core/src/main/java/de/brainstormsoftworks/taloonerrl/dungeon/Generator.java
// public abstract class Generator {
// 
// 	/**
// 	 * generates the level layout in the given map
// 	 *
// 	 * @param map
// 	 *            map to operate the generation on
// 	 * @param _tilesHorizontal
// 	 *            number of horizontal tiles in the map
// 	 * @param _tilesVertical
// 	 *            number of vertical tiles in the map
// 	 */
// 	public abstract void generate(final char[][] map, final int _tilesHorizontal, final int _tilesVertical);
// }


// Path: core/src/main/java/de/brainstormsoftworks/taloonerrl/internal/dungeon/GeneratorTest.java
import de.brainstormsoftworks.taloonerrl.dungeon.Generator;
import lombok.Getter;

/*******************************************************************************
 * Copyright (c) 2017 David Becker.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 * Contributors:
 *     David Becker - initial API and implementation
 ******************************************************************************/
package de.brainstormsoftworks.taloonerrl.internal.dungeon;


/**
 * test generator to generate a map from a unit test to walk about
 *
 * @author David Becker
 *
 */
public class GeneratorTest extends Generator {

	@Getter
	private static GeneratorTest instance = new GeneratorTest();

	@Override
	public void generate(final char[][] map, final int _tilesHorizontal, final int _tilesVertical) {
		for (int x = 0; x < _tilesHorizontal; x++) {
			for (int y = 0; y < _tilesVertical; y++) {
				map[x][y] = '.';
			}
		}
		for (int xy = 1; xy < 6; xy++) {
			map[xy][3] = '#';
			map[3][xy] = '#';
		}
		map[2][2] = '#';
		map[2][4] = '#';
		map[4][2] = '#';
		map[4][4] = '#';
		map[4][4] = '#';

		map[3][3] = '.';


		map[1][1] = '#';
