The type of string that a node ID for Stairs may use.
All of the hallways in this building
An object representing all of the one way staircases in the building. For example, if stairA is one-way and only down, it would be { stairA: "down" }.
An array of all of the names and aliases for all of the rooms
This is the method that tells you how to get from one room to another in a building.
The name of the starting room
The name of the destination room
Whether to capitalize the beginning of every line
Whether to add a period at the end of every instruction
The directions to get from room from
to room to
The graph that is generated from the nodes in the hallways and the connections between them
All of the hallways in this building
The name of the room
An array, where the first element is the index of the hallway where the room is located, and the second element is the index of the room in the hallway. If the room doesn't exist, returns null.
A possible name for a room in this building
true if there is a room with the name or alias
name
, and false otherwise.
Generated using TypeDoc
This is the class that we use to define a building. See README.md for a tutorial on how to create a Building.
Note on TypeScript usage: It is recommended that you supply your own types for the generic type parameters ForkName and StairName. See README.md for an example.