Directionclass | travel.t[30], en_us.t[3053] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
A Direction object encapsulates information about a travel direction. By using an object to represent each possible travel direction, we make it possible for a game or library extension to add new custom directions without having to change the basic library.
Modified in en_us.t[3053]:
The English-specific modifications for directions.
class
Direction : object
Direction
CompassDirection
RelativeDirection
ShipboardDirection
VerticalDirection
allDirections
dirProp
sortingOrder
defaultConnector
initializeDirection
initializeDirectionClass
sayArriving
sayDeparting
allDirections | travel.t[100] |
By using this master list to enumerate all possible directions rather than a hard-coded set of pre-defined directions, we can ensure that any new directions that a game or library extension adds will be incorporated automatically into the library simply by virtue of the existence Direction instances to represent the new directions.
dirProp | travel.t[36] |
sortingOrder | travel.t[85] |
defaultConnector (loc) | travel.t[45] |
initializeDirection ( ) | travel.t[52] |
initializeDirectionClass ( ) | travel.t[63] |
sayArriving (traveler) | en_us.t[3055] |
sayDeparting (traveler) | en_us.t[3062] |