MultiFacetedclass | objects.t[3264] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
This is especially useful for large objects that span multiple locations, such as a river or a long rope.
You define a multi-faceted object the same way you set up a MultiInstance: definfe a MultiFaceted shell object, and as part of the shell, define the facet object using the instanceObject property. Here's an example:
river: MultiFaceted
locationList = [riverBank, meadow, canyon]
instanceObject: Fixture { 'river' 'river'
"The river meanders by. "
}
;
The main difference between MultiInstance and MultiFaceted is that the "facet" objects of a MultiFaceted are related as facets of a common object from the parser's perspective. For example, if a player refers to one facet, then travels to another location that contains a different facet, then refers to "it", the parser will realize that the pronoun refers to the new facet in the new location.
class
MultiFaceted : MultiInstance
MultiFaceted
MultiInstance
BaseMultiLoc
object
Inherited from MultiInstance
:
instanceList
instanceObject
Inherited from BaseMultiLoc
:
initialLocationClass
locationList
Inherited from MultiInstance
:
addInstance
addToContents
getInstanceIn
initializeLocation
moveInto
moveIntoAdd
moveOutOf
removeFromContents
Inherited from BaseMultiLoc
:
buildLocationList
isDirectlyIn
isIn
isInitiallyIn
isListedInContents
isOrIsIn
instanceMixIn OVERRIDDEN | objects.t[3269] |
getFacets ( ) | objects.t[3266] |