Package com.mg105.entities
Class Doorway
java.lang.Object
com.mg105.entities.Doorway
A Doorway represents a single-direction connection from one room to another.
-
Constructor Details
-
Doorway
Create a doorway with its position in the room and the next room.- Parameters:
position
- the in-room position of this doorway.nextRoom
- the room that should be travelled to if this doorway is entered.
-
-
Method Details
-
getPosition
Gets the position of the doorway.- Returns:
- the position of the doorway.
-
getNextRoom
Gets the next room.- Returns:
- the next room.
-