package labyrinth;

import java.awt.Color;

public class Tile {

  private int _x;
  private int _y;

  private ETileType _type;
  private Color _color;
  
  public enum ETileType {
    WALL, EMPTY, HIGHLIGHT
  }


  public Tile(int x, int y, char c) {
    _x = x;
    _y = y;

    switch (c) {
    case '#':
      _type = ETileType.WALL;
      _color = Color.BLACK;
      break;
    case '.':
      _type = ETileType.EMPTY;
      _color = Color.WHITE;
      break;
    default:
      break;
    }
  }

  public int get_x() {
    return _x;
  }

  public int get_y() {
    return _y;
  }

  public ETileType getType() {
    return _type;
  }

//  public void setType(ETileType type) {
//    if (type == ETileType.HIGHLIGHT) {
//      _color = Color.CYAN;
//    }
//    _type = type;
//  }

  public Color getColor() {
    return _color;
  }
}

@@ -194,19 +194,8 @@
 MPTY
-, HIGHLIGHT
 %0A  %7D

remove HIGHLIGHT from tile enum