The name of this Room
The side of the Hallway that this Room is on
See Room.aliases
See Room.nodeId
See Room.prefix
Other names for this room. These aliases will not be used in the generated directions between rooms, but if you use an alias in Building.getDirections, it will know which room you want to go to.
The edge length in the graph from the previous node in this Hallway to this node. Use this if you want to alter the directions to make it less likely that the user will be given directions that take them along that edge in the hallway.
This property has no effect if this hallway element is not a node (has no node ID).
The name of this hallway element
The node ID of the node belonging to this Room. This can be either
"myConnection"
, to represent a forward connection, orreverseConnection("myConnection")
.The prefix that should be given whenever mentioning the name of this room. The default prefix is "room", which is useful when specifying a room with a number. But if you have a room with a name such as "Library", you should change the prefix to "the" so that the directions say "the Library" instead of "room Library". Use an empty string for no prefix.
Whether we're going forward or backward through this hallway
Is this sentence the last sentence in the whole in the whole set of directions created in Building.getDirections?
What we should say when we enter this room or hallway
Whether we're going forward or backward through this hallway
Is this sentence the first sentence in the whole set of directions created in Building.getDirections?
When we entered this hallway, were we going straight (as opposed to turning left or right into this hallway)? (not applicable if isBeginningOfDirections is true; in this case, the argument is ignored)
What we should say when we go out of this room or hallway
Whether we're going forward or backward through this hallway
The previous room
What we should say when you pass this room
Generated using TypeDoc
This class can represent a room or a Fork. It might seem illogical that a Fork is a type of Room, but this is because it is sometimes necessary for a room to have a node (for example, when there is a room inside another room). Most of the members of this class are inherited from HallwayElement.