import java.util.Map;
import java.util.HashMap;
import java.util.Set;

public class Room {
    private String description;
    private Map<String, Room> exits = new HashMap<>();
    private int x, y;  // Coordinates of the room
    private String feature;  // Features like "forest", "village", "mountain", etc.

    public Room(int x, int y, String description) {
        this.x = x;
        this.y = y;
        this.description = description;
        this.feature = "plain";  // Default feature (could be modified)
    }

    public String getDescription() {
        return description + " (" + feature + ")";
    }

    public void setDescription(String description) {
        this.description = description;  // Set the description for the room
    }

    public void setExit(String direction, Room room) {
        exits.put(direction, room);
    }

    public Room getExit(String direction) {
        return exits.get(direction);
    }

    public Set<String> getExits() {
        return exits.keySet();
    }

    public void setFeature(String feature) {
        this.feature = feature;
    }

    public String getFeature() {
        return feature;
    }

    public int getX() { return x; }
    public int getY() { return y; }
}
