Original Post
i am making a game in java that needs to create a map structure so that the player can move along it.
i just have create some class:
MapSite //super class of the elements of the map
Room extends MapSite
Corridor extends MapSite
SiteFactory // use to create different elements
FullMap //arrayList to store all the rooms and corridors
i found it does not have door with the room
so that if moving along the rooms, no locked room is found.
i want to add a new element "door" to connect the room.
but i dunno how to make this. anyone can help me?
for the detail of how many rooms can a room can connect to,
Room use array[4] // max no of room can connect is 4
corridor use hashtale // no limited