package labwork8; /** * The Location class is an implementation of the GameWorldComponent interface representing a location in the game world. */ public class Location implements GameWorldComponent { private String name; /** * Constructs a Location with a specified name. * * @param name the name of the location */ public Location(String name) { this.name = name; } }