// Path: src/main/java/pl/joegreen/sergeants/simulator/TerrainType.java
// final static TerrainType TILE_FOG = new TerrainType(-3);


import java.util.Optional;
import static pl.joegreen.sergeants.simulator.TerrainType.TILE_FOG;
package pl.joegreen.sergeants.simulator;



class EmptyTile extends AbstractTile {

    EmptyTile(int tileIndex) {
        super(tileIndex);
    }

    @Override
    public TerrainType getTerrainType(boolean visible) {
// Path: src/main/java/pl/joegreen/sergeants/simulator/TerrainType.java
// final static TerrainType TILE_FOG = new TerrainType(-3);


// Path: src/main/java/pl/joegreen/sergeants/simulator/EmptyTile.java
import java.util.Optional;
import static pl.joegreen.sergeants.simulator.TerrainType.TILE_FOG;

package pl.joegreen.sergeants.simulator;



class EmptyTile extends AbstractTile {

    EmptyTile(int tileIndex) {
        super(tileIndex);
    }

    @Override
    public TerrainType getTerrainType(boolean visible) {
        return visible ? getOwnerPlayerIndex().map(TerrainType::playerOwnedTerrain).orElse(TerrainType.TILE_EMPTY) : TILE_FOG;