Directionclass | travel.t[26], en_us.t[3025] |
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[3025]:
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[96] |
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[32] |
sortingOrder | travel.t[81] |
defaultConnector (loc) | travel.t[41] |
initializeDirection ( ) | travel.t[48] |
initializeDirectionClass ( ) | travel.t[59] |
sayArriving (traveler) | en_us.t[3027] |
sayDeparting (traveler) | en_us.t[3034] |