Class:Tangible
Extends: adventurejs.Matter
Defined in: adventure/assets/Tangible.js, line 4
More info: AboutTangibles
Public Constructor:
MyGame.createAsset({ "class":"Tangible", "name":"foo", [...] })
Tangible is the base class for all Assets with physical properties in the game world, with the exception of Substances. All of the properties of Tangible are inherited by all of its subclasses, and most subclasses don't define new properties. Most subclasses are essentially convenience methods that set a group of properties particular to a type of object. In theory, an instance of almost any subclass could be made to behave like an instance of almost any other subclass, simply by setting the right properties. This provides the flexibility to mix and match properties to construct game assets with customized behaviors.
For example, Chair defines something you can sit on, and Bed defines something you can lie on, but perhaps you want to make something like a divan, that you can sit on and lie on. You could create a Chair and set asset.aspects.on.nest.can.lie property to true.
MyGame.createAsset({
class: "Chair",
name: "divan",
descriptions: {look:"A comfortable looking fainting couch. ",),
aspects:
{
on: { nest: { can: { lie: true } } }
}
});
This is a simple example of customizing an object, but hopefully
it gives you an idea of how flexible the Tangible class is.
Alternatively if you wanted to extensively customize your divan,
you could define your own Divan class to extend
Furniture.
Private Constructor:
var foo = new adventurejs.Tangible(game_name, name)
Though all in-game glasses use a standard constructor method under the hood, it's unlikely that you'd need to call it directly. To create an instance of the Tangible class, it must be defined in a game file as a generic object. That object will be used at runtime to construct a new game class instance, which will be validated and initialized before adding it to the Game. See above for the public constructor, or see Game#createAsset to learn more.
Parameters:
-
game_name
String
The name of the top level game object. -
name
String
A name for the object, to be serialized and used as ID.
- Index
- Methods
- Properties
Index
Methods:
- Inherited from Asset $can
- $contains
- Overrides from Matter $is
- $moveTo
- Inherited from Asset $must
- Inherited from Asset $quirks
- addAssetAt
- Inherited from Asset addWordsToLookup
- Inherited from Asset aliases
- Inherited from Asset allowVerbOnce
- Inherited from Asset allowVerbWithAnything
- Inherited from Asset allowVerbWithAsset
- Inherited from Asset allowVerbWithNothing
- Inherited from Asset allowVerbWithPreposition
- areAnscestorsClosed
- areAnscestorsKnown
- areAnscestorsOpen
- areAnscestorsUnknown
- Inherited from Asset callAction
- canBePut
- canCharacterReachThatFromThis
- canContainAssetAt
- canContainSubstance
- Inherited from Asset canDoVerbAutomatically
- canNestPlayerAt
- Inherited from Asset canSetVerbState
- containsAnyAsset
- containsAnyAssetAt
- containsAnySubstance
- containsAnySubstanceAt
- containsAsset
- containsAssetAt
- containsSubstance
- containsSubstanceAt
- Overrides from Matter destroy
- Inherited from Asset didDoVerbs
- Inherited from Asset didIoVerbs
- Inherited from Asset didVerb
- Inherited from Asset didVerbCount
- findNestedAssetsWithClass
- findNestedAssetsWithProperty
- findNestedIndirectObjects
- get
- getAllContents
- getAllNestedContents
- getAncestorId
- getAnySubstanceThisContains
- getAspectAt
- Inherited from Atom getClassInheritance
- getClosedAnscestors
- getContentsAt
- getCountOfListableContentsAt
- getDepth
- getHeight
- getListableContents
- getNestOrPlaceAsset
- getNestOrPlacePreposition
- getOpenOrClosed
- getPlaceAspect
- getPlaceAsset
- getPlaceAssetId
- getPlacePreposition
- getPrettyPlacePreposition
- getPrintableListOfContents
- getRoomAsset
- getRoomId
- getRopesThatBlockTravel
- getSubstanceAt
- getThingThisIsTiedToPlayerBy
- getTiedThingsThatDragOnTravel
- Inherited from Asset getVerbConnectionCount
- Inherited from Asset getVerbConnections
- Inherited from Asset getVerbMaxConnections
- Inherited from Asset getVerbParam
- Inherited from Asset getVerbState
- getVessel
- getVesselAt
- getVesselPreposition
- getWidth
- getY
- getYBottom
- getYRange
- getYTop
- Inherited from Asset has
- Inherited from Asset hasAction
- hasAspectAt
- Inherited from Atom hasClass
- hasContentsAtAspect
- Inherited from Asset hasDescription
- Inherited from Asset hasDirectObjects
- Inherited from Asset hasIndirectDescription
- Inherited from Asset hasIndirectObjects
- hasListableContents
- hasPlace
- hasPropertyOnAspectAt
- hasRopesThatBlockTravel
- hasTiedThingsThatDragOnTravel
- Inherited from Asset hasVerbMaxConnections
- Inherited from Asset hasVerbParam
- hasVessel
- hasVesselAtAspect
- Inherited from Asset iDidVerb
- Inherited from Asset iDidVerbCount
- Inherited from Asset incrementDoVerbCount
- Inherited from Asset incrementTryVerbCount
- Overrides from Matter initialize
- isAttached
- isBehind
- Inherited from Asset isConnectedToAnything
- Inherited from Asset isConnectedToAsset
- Inherited from Asset isConnectedToNothing
- Inherited from Asset isDOV
- isIn
- Inherited from Asset isIOV
- isOn
- Inherited from Asset isOV
- isPlacedAtAspect
- isPlacedAtAspectAndAsset
- isUnder
- Inherited from Asset isVerbState
- isWithin
- isWithinYRange
- Inherited from Asset iTriedVerb
- Inherited from Asset iTriedVerbCount
- linkRegisteredParts
- moveFrom
- moveFrom
- moveTo
- onAddSubstanceToThis
- onChangeGravity
- onChangeMoisture
- onChangeTemperature
- onMoistenThisWithThat
- onMoveThatToThis
- onNestThatToThis
- onRemoveThatFromThis
- onSubtractSubstanceFromThis
- onTieThisToThat
- onUnnestThatFromThis
- onUntieThisFromThat
- placePreventsNesting
- put
- Inherited from Asset redirectVerb
- registerParts
- removeAssetAt
- removeThatFromThis
- Inherited from Atom set
- setAllAspectsContentsKnown
- setAllAspectsContentsSeen
- setAspectAt
- setAspectContentsKnown
- setAspectContentsSeen
- setAttachmentsKnown
- Inherited from Asset setDOV
- Inherited from Asset setDOVs
- Inherited from Asset setIOV
- Inherited from Asset setIOVs
- Inherited from Asset setIs
- Inherited from Asset setLinkedState
- Inherited from Asset setObjectOfVerbs
- setPlace
- setPosition
- Inherited from Asset setVerbState
- Inherited from Asset setVerbSubscription
- Inherited from Asset setVerbSubscriptionsWithAssets
- Inherited from Asset setVerbWithAsset
- Inherited from Asset setVerbWithClass
- setVesselAt
- setX
- setY
- setZ
- Inherited from Asset toggleState
- Inherited from Asset triedVerb
- Inherited from Asset triedVerbCount
- Inherited from Asset undestroy
- unfasten
- Inherited from Asset unredirectVerb
- Inherited from Asset unsetDOV
- Inherited from Asset unsetDOVs
- Inherited from Asset unsetIOV
- Inherited from Asset unsetIOVs
- Inherited from Asset unsetVerbSubscription
- Overrides from Matter validate
- Inherited from Asset validateVerbConnections
Properties:
- absorption_quantity
- Inherited from Asset adjectives
- aperture
- append_written_strings_to_description
- Inherited from Asset article_name
- Inherited from Asset articlename
- Inherited from Asset Articlename
- Inherited from Asset articlename_is
- Inherited from Asset Articlename_is
- Inherited from Asset articlename_isnt
- Inherited from Asset Articlename_isnt
- Inherited from Asset articlename_was
- Inherited from Asset Articlename_was
- Inherited from Asset articlename_wasnt
- Inherited from Asset Articlename_wasnt
- aspects
- buoyancy
- Inherited from Asset can
- can.be_swung_at
- Inherited from Asset collection
- contains
- control_target_id
- default_aspect
- Inherited from Asset definite_article
- Inherited from Asset definite_name
- Inherited from Asset description
- Inherited from Asset descriptions
- Inherited from Asset did
- dimensions
- dimensions
- direction
- Inherited from Asset dont_use_articles
- Inherited from Asset dov
- emits
- Inherited from Asset exclude_from_lookup
- exit
- Inherited from Atom game
- Inherited from Asset image
- Inherited from Asset indefinite_article
- Inherited from Asset indefinite_name
- Inherited from Asset iov
- Inherited from Asset is
- Inherited from Asset is.abstract
- is.buttoned
- is.carried
- is.closed
- is.cold_source
- Inherited from Asset is.collection
- is.connected_by
- is.deep_nest
- Inherited from Asset is.destroyed
- is.distant
- Inherited from Asset is.extant
- is.false_nest
- is.fixed
- Inherited from Asset is.global
- is.heat_source
- is.hidden
- is.hollow
- is.inhands
- Inherited from Asset is.initialized
- Inherited from Asset is.known
- is.light_source
- is.listed_in_parent
- is.listed_in_room
- is.locked
- Inherited from Asset is.nameless
- is.on
- is.on
- Inherited from Asset is.plugged
- Inherited from Asset is.pluggedIn
- Inherited from Asset is.plural
- is.present
- is.reachable
- is.reservoir
- is.screwed
- is.sealed
- Inherited from Asset is.singleton
- is.supported
- is.takeable
- is.typing_target
- is.unleavable
- is.unlisted_but_list_children
- Inherited from Asset is.validated
- is.viewport
- is.visible
- is.watertight
- is.worn
- is.zipped
- list_group
- location_required
- location_unneccessary
- min_light_required_to_see
- Inherited from Asset must
- must.hold_to_read
- must.hold_to_see_through
- must.hold_to_see_with
- must.let_go_after_swing
- must.wear_to_see_through
- must.wear_to_see_with
- Inherited from Atom Name
- Inherited from Asset name_is_proper
- Inherited from Asset noun
- on_tie_to_drag_behind_rope
- on_tie_to_this_take_this
- parts
- place
- player_can_exit
- player_knows_its_hidden
- Inherited from Asset plural
- position
- Inherited from Asset possessive
- posture_position
- Inherited from Asset print_bold
- Inherited from Asset print_class
- Inherited from Asset print_italic
- print_open_or_closed
- Inherited from Asset print_style
- Inherited from Asset pronoun
- Inherited from Asset propername
- Inherited from Asset proxy
- Inherited from Asset quirks
- quirks.climb_means_go_on
- quirks.climb_means_stand_on
- quirks.flick_means_toggle
- quirks.flip_means_toggle
- quirks.get_off_means_go_down
- quirks.get_on_means_go_up
- quirks.get_up_means_get_off
- quirks.in_means_on
- quirks.jump_means_jump_off
- quirks.jump_means_jump_on
- quirks.let_go_of_means_go_down
- quirks.let_go_of_means_go_off
- quirks.look_with_means_look_through
- quirks.pick_means_unlock
- quirks.point_means_aim
- quirks.press_means_toggle
- quirks.pull_means_open
- quirks.pull_means_open
- quirks.pull_means_toggle
- quirks.push_means_toggle
- quirks.put_means_pour
- quirks.stand_means_get_off
- quirks.step_on_means_stamp_on
- quirks.step_on_means_stand_on
- quirks.take_means_hold
- quirks.write_on_means_write_in
- redirected_verbs
- registerableClasses
- registered_parts
- Inherited from Asset short_name
- show_things_this_is_tied_to_in_description
- Inherited from Asset singlePluralPairs
- Inherited from Asset split_name_for_world_lookup
- things_player_can_climb_to_from_this
- things_player_can_jump_to_from_this
- things_player_can_reach_from_this
- things_player_can_reach_from_top_of_this
- things_player_can_reach_from_top_of_this
- things_player_can_swing_to_across_this
- things_player_can_swing_to_from_this
- Inherited from Asset to_be
- Inherited from Asset tried
- typing_target_id
- Inherited from Asset use_definite_article_in_lists
- use_once_message
- written_strings
Methods Collapse all |
$can()
Defined in: adventure/asset/$can.js, line 6
Inherited from: adventurejs.Asset#$can
$contains(id) → {Boolean}
Defined in: adventure/assets/tangible/$contains.js, line 5
Parameters:
-
id
String
Returns:
Boolean
$is(property, asset)
Defined in: adventure/assets/tangible/$is.js, line 5
Overrides from: adventurejs.Matter#$is
Todos: Leaving open the possibility for other params.
Parameters:
-
property
String -
asset
Object
- assetA.$is("reservoir")
- asking, is this asset a substance reservoir such as a lake or desert?
- assetA.$is("broken")
- asking, is this asset broken?
- assetA.$is("carried")
- asking, is this asset in the player's inventory?
- assetA.$is("closed")
- asking, is this asset closed?
- assetA.$is("dead")
- asking, is this character dead?
- assetA.$is("held", assetB)
- asking, is this asset held by that asset, as in a bannister held by player?
- assetA.$is("holding", assetB)
- asking, is this asset holding that asset, as in player holding a rope?
- assetA.$is("in"|"on"|"under"|"behind"|"attached", assetB)
- accepts any preposition, asking, is this asset in that aspect of that asset?
- assetA.$is("inhands")
- asking, is this asset in the player's hands?
- assetA.$is("known")
- asking, is this asset known by player?
- assetA.$is("locked")
- asking, is this asset locked?
- assetA.$is("nested in", assetB)
- nested in, specific to character classes, asking, is this asset nested in that asset?
- assetA.$is("open")
- asking, is this asset open?
- assetA.$is("plugged")
- asking, is this asset plugged?
- assetA.$is("present")
- asking, is this asset present in player's location?
- assetA.$is("reachable")
- asking, is this asset reachable by player?
- assetA.$is("sealed")
- asking, is this asset sealed?
- assetA.$is("takeable")
- asking, can this asset be taken?
- assetA.$is("unlocked")
- asking, is this asset unlocked?
- assetA.$is("unplugged")
- asking, is this asset unplugged?
- assetA.$is("unsealed")
- asking, is this asset unsealed?
- assetA.$is("visible")
- asking, is this asset visible to player?
- assetA.$is("worn")
- asking, is this asset being worn?
- assetA.$is("zipped")
- asking, is this asset zipped?
$moveTo(aspect, asset)
Defined in: adventure/assets/tangible/$moveTo.js, line 5
Parameters:
-
aspect
String -
asset
Object
$must()
Defined in: adventure/asset/$must.js, line 6
Inherited from: adventurejs.Asset#$must
$quirks() → {Boolean}
Defined in: adventure/asset/$quirk.js, line 6
Inherited from: adventurejs.Asset#$quirks
Returns:
Boolean
addAssetAt() → {Array}
Defined in: adventure/assets/tangible/addAssetAt.js, line 5
Returns:
Array
addWordsToLookup(words, type)
Defined in: adventure/asset/addWordsToLookup.js, line 5
Inherited from: adventurejs.Asset#addWordsToLookup
Parameters:
-
words
Array -
type
String
aliases()
Defined in: adventure/Asset.js, line 812
Inherited from: adventurejs.Asset#aliases
allowVerbOnce(verb, ov) → {Boolean}
Defined in: adventure/asset/allowVerbOnce.js, line 5
Inherited from: adventurejs.Asset#allowVerbOnce
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
allowVerbWithAnything(verb, ov) → {Boolean}
Defined in: adventure/asset/allowVerbWithAnything.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithAnything
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
allowVerbWithAsset(verb, asset, ov) → {Boolean}
Defined in: adventure/asset/allowVerbWithAsset.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithAsset
Parameters:
-
verb
String
The name of a verb. -
asset
Object
A game asset. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
allowVerbWithNothing(verb, ov) → {Boolean}
Defined in: adventure/asset/allowVerbWithNothing.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithNothing
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
allowVerbWithPreposition(verb, prep, ov) → {Boolean}
Defined in: adventure/asset/allowVerbWithPreposition.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithPreposition
Parameters:
-
verb
String
A verb name. -
prep
String
A preposition. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
areAnscestorsClosed() → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsClosed.js, line 5
Returns:
Boolean
areAnscestorsKnown() → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsKnown.js, line 5
Returns:
Boolean
areAnscestorsOpen() → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsOpen.js, line 5
Returns:
Boolean
areAnscestorsUnknown(nestlevel) → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsUnknown.js, line 5
Parameters:
-
nestlevel
int
Returns:
Boolean
callAction(action, asset2, asset3, params) → {Boolean}
Defined in: adventure/asset/callAction.js, line 5
Inherited from: adventurejs.Asset#callAction
Parameters:
-
action
string -
asset2
string
We use asset.name here instead of asset.id in support of authors, because we're never asking them to deal in IDs, only names. Hooks will only be defined by authors, so we let them use asset.name as their identifier. We do however make an effort to see if an id has been passed instead of a name, because Ivan. -
asset3
string -
params
object
Arbitrary parameter object.
Returns:
Boolean
canBePut(aspect, asset) → {Boolean}
Defined in: adventure/assets/tangible/canBePlacedInAspectOfAsset.js, line 5
Parameters:
-
aspect
String -
asset
Object
with_assets
and
with_classes
properties.
Returns:
Boolean
canCharacterReachThatFromThis(object) → {Boolean}
Defined in: adventure/assets/tangible/canSubjectReachThatFromThis.js, line 5
Parameters:
-
object
Object
Returns:
Boolean
canContainAssetAt(object) → {Boolean}
Defined in: adventure/assets/tangible/canContainAssetAt.js, line 5
Parameters:
-
object
Object
Returns:
Boolean
canContainSubstance() → {Boolean}
Defined in: adventure/assets/tangible/canContainSubstance.js, line 5
Returns:
Boolean
canDoVerbAutomatically(verb) → {Boolean}
Defined in: adventure/asset/canDoVerbAutomatically.js, line 5
Inherited from: adventurejs.Asset#canDoVerbAutomatically
Parameters:
-
verb
String
Returns:
Boolean
canNestPlayerAt(aspect) → {Boolean}
Defined in: adventure/assets/tangible/canNestPlayerAt.js, line 8
Parameters:
-
aspect
String
A Tangible Aspect ID.
Returns:
Boolean
canSetVerbState(verb) → {Boolean}
Defined in: adventure/asset/canSetVerbState.js, line 5
Inherited from: adventurejs.Asset#canSetVerbState
Parameters:
-
verb
String
Returns:
Boolean
containsAnyAsset() → {Boolean}
Defined in: adventure/assets/tangible/containsAnyAsset.js, line 5
Returns:
Boolean
containsAnyAssetAt(aspect) → {Boolean}
Defined in: adventure/assets/tangible/containsAnyAssetAt.js, line 5
Parameters:
-
aspect
String
Returns:
Boolean
containsAnySubstance() → {Boolean}
Defined in: adventure/assets/tangible/containsAnySubstance.js, line 5
Returns:
Boolean
containsAnySubstanceAt(aspect) → {Boolean}
Defined in: adventure/assets/tangible/containsAnySubstanceAt.js, line 5
Parameters:
-
aspect
String
Returns:
Boolean
containsAsset(id) → {String}
Defined in: adventure/assets/tangible/containsAsset.js, line 5
Parameters:
-
id
String
Returns:
String
containsAssetAt(id, aspect) → {Boolean}
Defined in: adventure/assets/tangible/containsAssetAt.js, line 5
Parameters:
-
id
String -
aspect
String
Returns:
Boolean
containsSubstance(id) → {String}
Defined in: adventure/assets/tangible/containsSubstance.js, line 5
Parameters:
-
id
String
Returns:
String
containsSubstanceAt(id, aspect) → {Boolean}
Defined in: adventure/assets/tangible/containsSubstanceAt.js, line 5
Parameters:
-
id
String -
aspect
String
Returns:
Boolean
destroy()
Defined in: adventure/assets/Tangible.js, line 1117
Overrides from: adventurejs.Matter#destroy
didDoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didDoVerbs.js, line 5
Inherited from: adventurejs.Asset#didDoVerbs
Parameters:
-
verbs
Array
Returns:
Boolean
didIoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didIoVerbs.js, line 5
Inherited from: adventurejs.Asset#didIoVerbs
Parameters:
-
verbs
Array
Returns:
Boolean
didVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/didVerb.js, line 5
Inherited from: adventurejs.Asset#didVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$did is an alias for authors.
Returns:
Boolean
didVerbCount(verb, ov) → {Int}
Defined in: adventure/asset/didVerbCount.js, line 5
Inherited from: adventurejs.Asset#didVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$didCount is an alias for authors.
Returns:
Int
findNestedAssetsWithClass(instanceClass) → {Array}
Defined in: adventure/assets/tangible/findNestedAssetsWithClass.js, line 5
Parameters:
-
instanceClass
String
Returns:
Array
findNestedAssetsWithProperty(property) → {Array}
Defined in: adventure/assets/tangible/findNestedAssetsWithProperty.js, line 5
Parameters:
-
property
String
Returns:
Array
findNestedIndirectObjects(verb, direct_object) → {Array}
Defined in: adventure/assets/tangible/findNestedIndirectObjects.js, line 5
Parameters:
-
verb
String
The name of a verb. -
direct_object
Object | String
An asset or asset ID of a direct object that the player has tried to perform an indirect verb on.
Returns:
Array
An array of indirect objects, if found.
get(property, qualifier)
Defined in: adventure/assets/tangible/$get.js, line 5
Parameters:
-
property
String -
qualifier
String
- all - list all children in all aspects of this
- allnested - list all descendents in all aspects of this
- behind - list things behind this
- in - list things in this
- on - list things on this
- under - list things under this
- attached - list things attached to this
getAllContents() → {Array}
Defined in: adventure/assets/tangible/getAllContents.js, line 5
Returns:
Array
getAllNestedContents() → {Array}
Defined in: adventure/assets/tangible/getAllNestedContents.js, line 5
Returns:
Array
getAncestorId() → {String}
Defined in: adventure/assets/tangible/getAncestorId.js, line 5
Returns:
String
getAnySubstanceThisContains() → {String}
Defined in: adventure/assets/tangible/getAnySubstanceThisContains.js, line 5
Returns:
String
getAspectAt(aspect) → {Object|Null}
Defined in: adventure/assets/tangible/getAspectAt.js, line 5
Parameters:
-
aspect
string
The aspect to get.
Returns:
Object
|
Null
getClassInheritance() → {Array}
Defined in: adventure/Atom.js, line 144
Inherited from: adventurejs.Atom#getClassInheritance
Returns:
Array
getClosedAnscestors() → {Array}
Defined in: adventure/assets/tangible/getClosedAnscestors.js, line 5
Returns:
Array
getContentsAt() → {Array}
Defined in: adventure/assets/tangible/getContentsAt.js, line 5
Returns:
Array
getCountOfListableContentsAt(where) → {int}
Defined in: adventure/assets/tangible/getCountOfListableContentsAt.js, line 5
Parameters:
-
where
String
Returns:
int
getDepth() → {Float}
getHeight() → {Float}
getListableContents() → {Array}
Defined in: adventure/assets/tangible/getListableContents.js, line 5
Returns:
Array
getNestOrPlaceAsset() → {Boolean}
Defined in: adventure/assets/tangible/getNestOrPlaceAsset.js, line 5
Returns:
Boolean
getNestOrPlacePreposition() → {Boolean}
Defined in: adventure/assets/tangible/getNestOrPlacePreposition.js, line 5
Returns:
Boolean
getOpenOrClosed() → {Array}
Defined in: adventure/assets/tangible/getOpenOrClosed.js, line 5
Returns:
Array
getPlaceAspect() → {Object|null}
Defined in: adventure/assets/tangible/getPlaceAspect.js, line 5
Returns:
Object
|
null
getPlaceAsset() → {Object|Boolean}
Defined in: adventure/assets/tangible/getPlaceAsset.js, line 5
Returns:
Object
|
Boolean
getPlaceAssetId() → {String}
Defined in: adventure/assets/tangible/getPlaceAssetId.js, line 5
Returns:
String
getPlacePreposition() → {String}
Defined in: adventure/assets/tangible/getPlacePreposition.js, line 5
Returns:
String
getPrettyPlacePreposition() → {String}
Defined in: adventure/assets/tangible/getPrettyPlacePreposition.js, line 5
Returns:
String
getPrintableListOfContents(params) → {String}
Defined in: adventure/assets/tangible/getPrintableListOfContents.js, line 5
Parameters:
-
params
Object
Returns:
String
getRoomAsset() → {String}
Defined in: adventure/assets/tangible/getRoomAsset.js, line 5
Returns:
String
getRoomId() → {String}
Defined in: adventure/assets/tangible/getRoomId.js, line 5
Returns:
String
getRopesThatBlockTravel() → {Array}
Defined in: adventure/assets/tangible/getRopesThatBlockTravel.js, line 5
Returns:
Array
getSubstanceAt() → {String}
Defined in: adventure/assets/tangible/getSubstanceAt.js, line 5
Returns:
String
getThingThisIsTiedToPlayerBy() → {Object}
Defined in: adventure/assets/tangible/getThingThisIsTiedToPlayerBy.js, line 5
Returns:
Object
getTiedThingsThatDragOnTravel() → {Array}
Defined in: adventure/assets/tangible/getTiedThingsThatDragOnTravel.js, line 5
Returns:
Array
getVerbConnectionCount(verb, to_ov) → {Int}
Defined in: adventure/asset/getVerbConnectionCount.js, line 5
Inherited from: adventurejs.Asset#getVerbConnectionCount
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Int
getVerbConnections(verb, to_ov) → {Array}
Defined in: adventure/asset/getVerbConnections.js, line 5
Inherited from: adventurejs.Asset#getVerbConnections
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Array
getVerbMaxConnections(verb, ov) → {Boolean}
Defined in: adventure/asset/getVerbMaxConnections.js, line 5
Inherited from: adventurejs.Asset#getVerbMaxConnections
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
getVerbParam(verb, param) → {*}
Defined in: adventure/asset/getVerbParam.js, line 5
Inherited from: adventurejs.Asset#getVerbParam
Parameters:
-
verb
String
The name of a verb. -
param
String
The name of a param in with_params.
Returns:
*
getVerbState()
Defined in: adventure/asset/getVerbState.js, line 5
Inherited from: adventurejs.Asset#getVerbState
getVessel() → {Object|Null}
Defined in: adventure/assets/tangible/getVessel.js, line 5
Returns:
Object
|
Null
getVesselAt(aspect) → {Object|Null}
Defined in: adventure/assets/tangible/getVesselAt.js, line 5
Parameters:
-
aspect
string
The aspect to check.
Returns:
Object
|
Null
getVesselPreposition() → {String}
Defined in: adventure/assets/tangible/getVesselPreposition.js, line 5
Returns:
String
getWidth() → {Float}
getY() → {Float}
getYBottom() → {Float}
Defined in: adventure/assets/tangible/getYBottom.js, line 5
Returns:
Float
getYRange() → {Object}
Defined in: adventure/assets/tangible/getYRange.js, line 5
Returns:
Object
getYTop() → {Float}
Defined in: adventure/assets/tangible/getYTop.js, line 5
Returns:
Float
has()
Defined in: adventure/asset/$has.js, line 6
Inherited from: adventurejs.Asset#has
if( MyGame.$('crown').$has('jewel') ){ // do stuff }
hasAction(hook_name, asset1_name, asset2_name) → {Boolean}
Defined in: adventure/asset/hasAction.js, line 5
Inherited from: adventurejs.Asset#hasAction
Parameters:
-
hook_name
string -
asset1_name
string
We use asset.name here instead of asset.id to make life slightly easier for authors. Asset IDs are formed from asset names, but generally we don't expect authors to be aware of IDs. Hooks will only be defined by authors, so let them use asset.name as their identifier. We do however make an effort to see if an id has been passed instead of a name. -
asset2_name
string
Returns:
Boolean
hasAspectAt(aspect) → {Boolean}
Defined in: adventure/assets/tangible/hasAspectAt.js, line 5
Parameters:
-
aspect
String
Returns:
Boolean
hasClass(prop) → {Boolean}
Defined in: adventure/Atom.js, line 124
Inherited from: adventurejs.Atom#hasClass
Parameters:
-
prop
String
Name of the class to test for.
Returns:
Boolean
hasContentsAtAspect(aspect) → {Boolean}
Defined in: adventure/assets/tangible/hasContentsAtAspect.js, line 5
Parameters:
-
aspect
String
Returns:
Boolean
hasDescription(identifier) → {String|Boolean}
Defined in: adventure/asset/hasDescription.js, line 5
Inherited from: adventurejs.Asset#hasDescription
Parameters:
-
identifier
String
Returns:
String
|
Boolean
hasDirectObjects(verb) → {Boolean}
Defined in: adventure/asset/hasDirectObjects.js, line 5
Inherited from: adventurejs.Asset#hasDirectObjects
Parameters:
-
verb
String
Returns:
Boolean
hasIndirectDescription(indirect_aspect, indirect_asset, direct_aspect) → {String|Boolean}
Defined in: adventure/asset/hasIndirectDescription.js, line 5
Inherited from: adventurejs.Asset#hasIndirectDescription
- Yes
Todos: delete
Parameters:
-
indirect_aspect
String -
indirect_asset
Object -
direct_aspect
String
Returns:
String
|
Boolean
hasIndirectObjects(verb) → {Boolean}
Defined in: adventure/asset/hasIndirectObjects.js, line 5
Inherited from: adventurejs.Asset#hasIndirectObjects
Parameters:
-
verb
String
Returns:
Boolean
hasListableContents() → {Boolean}
Defined in: adventure/assets/tangible/hasListableContents.js, line 5
Todos: transparent containers
Returns:
Boolean
hasPlace() → {Boolean}
Defined in: adventure/assets/tangible/hasPlace.js, line 5
Returns:
Boolean
hasPropertyOnAspectAt() → {Boolean}
Defined in: adventure/assets/tangible/hasPropertyOnAspectAt.js, line 5
- this will likely go away
Returns:
Boolean
hasRopesThatBlockTravel() → {Boolean}
Defined in: adventure/assets/tangible/hasRopesThatBlockTravel.js, line 5
Returns:
Boolean
hasTiedThingsThatDragOnTravel() → {Boolean}
Defined in: adventure/assets/tangible/hasTiedThingsThatDragOnTravel.js, line 5
Returns:
Boolean
hasVerbMaxConnections(verb, to_ov) → {Boolean}
Defined in: adventure/asset/hasVerbMaxConnections.js, line 5
Inherited from: adventurejs.Asset#hasVerbMaxConnections
Todos: dov/iov or both
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Boolean
hasVerbParam(verb, param) → {*}
Defined in: adventure/asset/hasVerbParam.js, line 5
Inherited from: adventurejs.Asset#hasVerbParam
Parameters:
-
verb
String
The name of a verb. -
param
String
The name of a param in with_params.
Returns:
*
hasVessel() → {Boolean}
Defined in: adventure/assets/tangible/hasVessel.js, line 5
Returns:
Boolean
hasVesselAtAspect(aspect) → {Boolean}
Defined in: adventure/assets/tangible/hasVesselAtAspect.js, line 5
Parameters:
-
aspect
String
Returns:
Boolean
iDidVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/iDidVerb.js, line 5
Inherited from: adventurejs.Asset#iDidVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iDidDo is an alias for authors.
Returns:
Boolean
iDidVerbCount(verb, ov) → {Int}
Defined in: adventure/asset/iDidVerbCount.js, line 5
Inherited from: adventurejs.Asset#iDidVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iDidCount is an alias for authors.
Returns:
Int
incrementDoVerbCount(verb, ov)
Defined in: adventure/asset/incrementDoVerbCount.js, line 5
Inherited from: adventurejs.Asset#incrementDoVerbCount
Parameters:
-
verb
String -
ov
String
"dov" or "iov" representing a direct or indirect object.
incrementTryVerbCount(verb, index)
Defined in: adventure/asset/incrementTryVerbCount.js, line 5
Inherited from: adventurejs.Asset#incrementTryVerbCount
Parameters:
-
verb
String -
index
Int
initialize(game) → {Boolean}
Defined in: adventure/assets/Tangible.js, line 1094
Overrides from: adventurejs.Matter#initialize
Parameters:
-
game
Object
- link related objects
- register parts
Returns:
Boolean
isAttached(asset) → {boolean}
Defined in: adventure/assets/tangible/$isAttached.js, line 6
Parameters:
-
asset
Object | String
Can be string or object.
behind
aspect of another asset.
This is a one-to-one check that doesn't take nesting into consideration.
if( MyGame.$('trophy').$isAttached('plaque') ){ // do stuff }
Returns:
boolean
isBehind(asset) → {boolean}
Defined in: adventure/assets/tangible/$isBehind.js, line 6
Parameters:
-
asset
Object | String
Can be string or object.
behind
aspect of another asset.
This is a one-to-one check that doesn't take nesting into consideration.
if( MyGame.$('killer').$isBehind('curtain') ){ // do stuff }
Returns:
boolean
isConnectedToAnything(verb, to_ov) → {Boolean}
Defined in: adventure/asset/isConnectedToAnything.js, line 5
Inherited from: adventurejs.Asset#isConnectedToAnything
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Direct or indirect object of verb.
plugIn
or tie
. For example, if this asset
is a computer plugged into an outlet, this method would return true.
Returns:
Boolean
isConnectedToAsset(verb, asset, to_ov) → {Boolean}
Defined in: adventure/asset/isConnectedToAsset.js, line 5
Inherited from: adventurejs.Asset#isConnectedToAsset
Parameters:
-
verb
String
The name of the verb to test. -
asset
Object | String
A game asset or asset id to test. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Boolean
isConnectedToNothing(verb, ov) → {Boolean}
Defined in: adventure/asset/isConnectedToNothing.js, line 5
Inherited from: adventurejs.Asset#isConnectedToNothing
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
asset.is.connected_by.plugIn.to_iov
to represent the computer's plugged in state.
Returns:
Boolean
isDOV(verb) → {Boolean}
Defined in: adventure/asset/isDOV.js, line 5
Inherited from: adventurejs.Asset#isDOV
Parameters:
-
verb
String
Returns:
Boolean
isIn(asset) → {boolean}
Defined in: adventure/assets/tangible/$isIn.js, line 6
Parameters:
-
asset
Object | String
Can be string or object.
in
aspect of another asset.
This is a one-to-one check that doesn't take nesting into consideration.
if( MyGame.$('rabbit').$isIn('hat') ){ // do stuff }
Returns:
boolean
isIOV(verb) → {Boolean}
Defined in: adventure/asset/isIOV.js, line 5
Inherited from: adventurejs.Asset#isIOV
Parameters:
-
verb
String
Returns:
Boolean
isOn(asset) → {boolean}
Defined in: adventure/assets/tangible/$isOn.js, line 6
Parameters:
-
asset
Object | String
Can be string or object.
on
aspect of another asset.
This is a one-to-one check that doesn't take nesting into consideration.
if( MyGame.$('fishbowl').$isOn('credenza') ){ // do stuff }
Returns:
boolean
isOV(verb) → {Boolean}
Defined in: adventure/asset/isOV.js, line 5
Inherited from: adventurejs.Asset#isOV
Parameters:
-
verb
String
Returns:
Boolean
isPlacedAtAspect() → {Boolean}
Defined in: adventure/assets/tangible/isPlacedAtAspect.js, line 5
Returns:
Boolean
isPlacedAtAspectAndAsset(aspect, asset) → {Boolean}
Defined in: adventure/assets/tangible/isPlacedAtAspectAndAsset.js, line 5
Parameters:
-
aspect
String -
asset
String
Returns:
Boolean
isUnder(asset) → {boolean}
Defined in: adventure/assets/tangible/$isUnder.js, line 6
Parameters:
-
asset
Object | String
Can be string or object.
under
aspect of another asset.
This is a one-to-one check that doesn't take nesting into consideration.
if( MyGame.$('monster').$isUnder('bed') ){ // do stuff }
Returns:
boolean
isVerbState(verb) → {Boolean}
Defined in: adventure/asset/isVerbState.js, line 5
Inherited from: adventurejs.Asset#isVerbState
Parameters:
-
verb
String
Returns:
Boolean
isWithin(asset) → {boolean}
Defined in: adventure/assets/tangible/$isWithin.js, line 6
Parameters:
-
asset
Object | String
Can be string or object.
if( MyGame.$('jewel').$isWithin('crown') ){ // do stuff }
Returns:
boolean
isWithinYRange(asset) → {Boolean}
Defined in: adventure/assets/tangible/isWithinYRange.js, line 5
Parameters:
-
asset
Object
Returns:
Boolean
iTriedVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/iTriedVerb.js, line 5
Inherited from: adventurejs.Asset#iTriedVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iTried is an alias for authors.
Returns:
Boolean
iTriedVerbCount(verb, ov) → {Boolean}
Defined in: adventure/asset/iTriedVerbCount.js, line 5
Inherited from: adventurejs.Asset#iTriedVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iTryCount is an alias for authors.
Returns:
Boolean
linkRegisteredParts()
Defined in: adventure/assets/tangible/linkRegisteredParts.js, line 5
moveFrom(asset) → {Boolean}
Defined in: adventure/assets/tangible/$moveFrom.js, line 5
Parameters:
-
asset
Object
Returns:
Boolean
moveFrom(asset) → {Boolean}
Defined in: adventure/assets/tangible/moveFrom.js, line 5
Parameters:
-
asset
Object
Returns:
Boolean
moveTo(aspect, asset)
Defined in: adventure/assets/tangible/moveTo.js, line 5
Parameters:
-
aspect
String -
asset
Object
onAddSubstanceToThis(asset)
Defined in: adventure/assets/tangible/onAddSubstanceToThis.js, line 5
Parameters:
-
asset
Object
onChangeGravity()
Defined in: adventure/assets/tangible/onChangeGravity.js, line 5
onChangeMoisture(asset)
Defined in: adventure/assets/tangible/onChangeMoisture.js, line 5
Todos: This should probably take a moisture value rather than an asset.
Parameters:
-
asset
Object
onChangeTemperature()
Defined in: adventure/assets/tangible/onChangeTemperature.js, line 5
onMoistenThisWithThat(asset)
Defined in: adventure/assets/tangible/onMoistenThisWithThat.js, line 5
Parameters:
-
asset
Object
onMoveThatToThis(asset, where) → {Boolean}
Defined in: adventure/assets/tangible/onMoveThatToThis.js, line 5
Parameters:
-
asset
Object -
where
String
Returns:
Boolean
onNestThatToThis(player) → {Boolean}
Defined in: adventure/assets/tangible/onNestThatToThis.js, line 5
Parameters:
-
player
Object
Returns:
Boolean
onRemoveThatFromThis(asset) → {Boolean}
Defined in: adventure/assets/tangible/onRemoveThatFromThis.js, line 5
Parameters:
-
asset
Object
Returns:
Boolean
onSubtractSubstanceFromThis(asset)
Defined in: adventure/assets/tangible/onSubtractSubstanceFromThis.js, line 5
Parameters:
-
asset
Object
onTieThisToThat(asset) → {Boolean}
Defined in: adventure/assets/tangible/onTieThisToThat.js, line 5
Parameters:
-
asset
Object
Returns:
Boolean
onUnnestThatFromThis(player) → {Boolean}
Defined in: adventure/assets/tangible/onUnnestThatFromThis.js, line 5
Parameters:
-
player
Object
Returns:
Boolean
onUntieThisFromThat(asset) → {Boolean}
Defined in: adventure/assets/tangible/onUntieThisFromThat.js, line 5
Parameters:
-
asset
Object
Returns:
Boolean
placePreventsNesting(player) → {Boolean}
Defined in: adventure/assets/tangible/placePreventsNesting.js, line 5
Parameters:
-
player
Object
Returns:
Boolean
put(preposition, indirect_object)
Defined in: adventure/assets/tangible/$put.js, line 8
Parameters:
-
preposition
String -
indirect_object
Object | String
asset object or name/id
redirectVerb(oldVerb, newVerb)
Defined in: adventure/asset/redirectVerb.js, line 6
Inherited from: adventurejs.Asset#redirectVerb
Parameters:
-
oldVerb
String -
newVerb
String
registerParts()
Defined in: adventure/assets/tangible/registerParts.js, line 5
removeAssetAt() → {Array}
Defined in: adventure/assets/tangible/removeAssetAt.js, line 5
Returns:
Array
removeThatFromThis(asset)
Defined in: adventure/assets/tangible/removeThatFromThis.js, line 5
Parameters:
-
asset
Object
set(props) → {Object}
Defined in: adventure/Atom.js, line 112
Inherited from: adventurejs.Atom#set
Parameters:
-
props
Object
A generic object containing properties to copy to the Object instance.
Returns:
Object
Returns the instance the method is called on (useful for chaining calls.)
setAllAspectsContentsKnown()
Defined in: adventure/assets/tangible/setAllAspectsContentsKnown.js, line 5
setAllAspectsContentsSeen()
Defined in: adventure/assets/tangible/setAllAspectsContentsSeen.js, line 5
setAspectAt(aspect) → {Array}
Defined in: adventure/assets/tangible/setAspectAt.js, line 5
Parameters:
-
aspect
string
The aspect to add.
Returns:
Array
setAspectContentsKnown()
Defined in: adventure/assets/tangible/setAspectContentsKnown.js, line 5
setAspectContentsSeen()
Defined in: adventure/assets/tangible/setAspectContentsSeen.js, line 5
setAttachmentsKnown()
Defined in: adventure/assets/tangible/setAttachmentsKnown.js, line 5
setDOV(verb, params)
Defined in: adventure/asset/setDOV.js, line 6
Inherited from: adventurejs.Asset#setDOV
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with direct object specified.
setDOVs(verb, params)
Defined in: adventure/asset/setDOVs.js, line 6
Inherited from: adventurejs.Asset#setDOVs
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with direct object specified.
setIOV(verb, params)
Defined in: adventure/asset/setIOV.js, line 6
Inherited from: adventurejs.Asset#setIOV
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with indirect object specified.
setIOVs(verb, params)
Defined in: adventure/asset/setIOVs.js, line 6
Inherited from: adventurejs.Asset#setIOVs
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with indirect object specified.
setIs(bool)
Defined in: adventure/asset/setIs.js, line 6
Inherited from: adventurejs.Asset#setIs
Parameters:
-
bool
Boolean
setLinkedState(bool)
Defined in: adventure/asset/setLinkedState.js, line 6
Inherited from: adventurejs.Asset#setLinkedState
Parameters:
-
bool
Boolean
setObjectOfVerbs(object_of, verb)
Defined in: adventure/asset/setObjectOfVerbs.js, line 6
Inherited from: adventurejs.Asset#setObjectOfVerbs
Parameters:
-
object_of
String -
verb
String
setVerbSubscription
.
setPlace(aspect, asset_id) → {Object}
Defined in: adventure/assets/tangible/setPlace.js, line 5
Parameters:
-
aspect
String -
asset_id
String
Returns:
Object
setPosition(params) → {Object}
Defined in: adventure/assets/tangible/setPosition.js, line 5
Parameters:
-
params
Object
Returns:
Object
setVerbState()
Defined in: adventure/asset/setVerbState.js, line 5
Inherited from: adventurejs.Asset#setVerbState
setVerbSubscription(object_of, verb, params)
Defined in: adventure/asset/setVerbSubscription.js, line 5
Inherited from: adventurejs.Asset#setVerbSubscription
Todos: phase out earlier version
Parameters:
-
object_of
String -
verb
String | Object
An early version takes a string, with separate params object. A later version takes an object that includes the verb name as an object key and params as value. -
params
Object
An optional param that works with the earlier version.
setVerbSubscriptionsWithAssets(description) → {String}
Defined in: adventure/asset/setVerbSubscriptionsWithAssets.js, line 5
Inherited from: adventurejs.Asset#setVerbSubscriptionsWithAssets
Parameters:
-
description
String
Returns:
String
setVerbWithAsset(verb, asset, ov) → {Boolean}
Defined in: adventure/asset/setVerbWithAsset.js, line 5
Inherited from: adventurejs.Asset#setVerbWithAsset
Parameters:
-
verb
String
The name of a verb. -
asset
Object -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
setVerbWithClass(verb, klass, ov) → {Boolean}
Defined in: adventure/asset/setVerbWithClass.js, line 5
Inherited from: adventurejs.Asset#setVerbWithClass
Parameters:
-
verb
String
The name of a verb. -
klass
String -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
setVesselAt(aspect) → {Array}
Defined in: adventure/assets/tangible/setVesselAt.js, line 5
Parameters:
-
aspect
string
The aspect to add.
Returns:
Array
setX(value) → {Float}
Defined in: adventure/assets/tangible/setX.js, line 5
Parameters:
-
value
Float
Returns:
Float
setY(value) → {Float}
Defined in: adventure/assets/tangible/setY.js, line 5
Parameters:
-
value
Float
Returns:
Float
setZ(value) → {Float}
Defined in: adventure/assets/tangible/setZ.js, line 5
Parameters:
-
value
Float
Returns:
Float
toggleState(verb) → {Boolean}
Defined in: adventure/asset/toggleState.js, line 5
Inherited from: adventurejs.Asset#toggleState
Parameters:
-
verb
String
Returns:
Boolean
triedVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/triedVerb.js, line 5
Inherited from: adventurejs.Asset#triedVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$tried is an alias for authors.
Returns:
Boolean
triedVerbCount(verb, ov) → {Boolean}
Defined in: adventure/asset/triedVerbCount.js, line 5
Inherited from: adventurejs.Asset#triedVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$triedCount is an alias for authors.
Returns:
Boolean
undestroy()
Defined in: adventure/asset/undestroy.js, line 6
Inherited from: adventurejs.Asset#undestroy
unfasten() → {string}
Defined in: adventure/assets/tangible/unfasten.js, line 6
Returns:
string
unredirectVerb(oldVerb)
Defined in: adventure/asset/unredirectVerb.js, line 6
Inherited from: adventurejs.Asset#unredirectVerb
Parameters:
-
oldVerb
String
unsetDOV(verb)
Defined in: adventure/asset/unsetDOV.js, line 6
Inherited from: adventurejs.Asset#unsetDOV
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetDOVs(verbs)
Defined in: adventure/asset/unsetDOVs.js, line 6
Inherited from: adventurejs.Asset#unsetDOVs
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetIOV(verb)
Defined in: adventure/asset/unsetIOV.js, line 6
Inherited from: adventurejs.Asset#unsetIOV
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetIOVs(verbs)
Defined in: adventure/asset/unsetIOVs.js, line 6
Inherited from: adventurejs.Asset#unsetIOVs
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetVerbSubscription(object_of, verb)
Defined in: adventure/asset/unsetVerbSubscription.js, line 5
Inherited from: adventurejs.Asset#unsetVerbSubscription
Parameters:
-
object_of
String -
verb
String
validate(game) → {Boolean}
Defined in: adventure/assets/Tangible.js, line 1030
Overrides from: adventurejs.Matter#validate
Parameters:
-
game
Object
- check for implied dependencies and make them explicit
- check for proper asset location
- set parent associations
Returns:
Boolean
validateVerbConnections()
Defined in: adventure/asset/validateVerbConnections.js, line 5
Inherited from: adventurejs.Asset#validateVerbConnections
dov[verb]
and some verbs can make connections between assets
that they act upon. Connections are stored in
asset.is.connected_by.verbname.to_iov["array of asset ids"]
.
Authors can preset connections in their game file,
so we validate any preset connections here.
Properties |
absorption_quantity :Boolean
Defined in: adventure/assets/Tangible.js, line 336
Default value: 0
adjectives :Getter/Setter
Defined in: adventure/Asset.js, line 318
Inherited from: adventurejs.Asset#adjectives
aperture :String
Defined in: adventure/assets/tangibles/Exit.js, line 295
Default value: ""
append_written_strings_to_description :Boolean
Defined in: adventure/assets/Tangible.js, line 430
Default value: false
article_name :Getter
Defined in: adventure/Asset.js, line 400
Inherited from: adventurejs.Asset#article_name
articlename :Getter
Defined in: adventure/Asset.js, line 414
Inherited from: adventurejs.Asset#articlename
Articlename :Getter
Defined in: adventure/Asset.js, line 481
Inherited from: adventurejs.Asset#Articlename
articlename_is :Getter
Defined in: adventure/Asset.js, line 441
Inherited from: adventurejs.Asset#articlename_is
Articlename_is :Getter
Defined in: adventure/Asset.js, line 490
Inherited from: adventurejs.Asset#Articlename_is
articlename_isnt :Getter
Defined in: adventure/Asset.js, line 451
Inherited from: adventurejs.Asset#articlename_isnt
Articlename_isnt :Getter
Defined in: adventure/Asset.js, line 499
Inherited from: adventurejs.Asset#Articlename_isnt
articlename_was :Getter
Defined in: adventure/Asset.js, line 461
Inherited from: adventurejs.Asset#articlename_was
Articlename_was :Getter
Defined in: adventure/Asset.js, line 508
Inherited from: adventurejs.Asset#Articlename_was
articlename_wasnt :Getter
Defined in: adventure/Asset.js, line 471
Inherited from: adventurejs.Asset#articlename_wasnt
Articlename_wasnt :Getter
Defined in: adventure/Asset.js, line 517
Inherited from: adventurejs.Asset#Articlename_wasnt
aspects :Object
Defined in: adventure/assets/Tangible.js, line 70
Default value: {}
buoyancy :float
Defined in: adventure/assets/Tangible.js, line 328
Default value: 0
Todos: Implement.
can :Object
Defined in: adventure/Asset.js, line 48
Inherited from: adventurejs.Asset#can
can.be_swung_at :Boolean
Defined in: adventure/assets/Tangible.js, line 405
Default value: true
Nested property of Can
collection :Getter/Setter
Defined in: adventure/Asset.js, line 182
Inherited from: adventurejs.Asset#collection
contains :Object
Defined in: adventure/assets/Tangible.js, line 983
this.aspects.in = new adventurejs.Aspect( "in", this.game_name, this.id );
this.aspects.in.vessel = new adventurejs.Vessel( "in", game_name, this.id )
.set({
"volume": Infinity,
"maxvolume": Infinity,
"substance_id": substance_id,
});
This is to make it easier and more intuitive for authors to set things like sand in a desert room or water in a swamp room, so that if player inputs "fill bowl with water", it can be assumed that the room is the source of the substance. When multiple substance containers are available, usually disambiguation occurs, but in the case of a room containing a substance, the room is assumed to be the source.
control_target_id :String
Defined in: adventure/assets/tangibles/things/GraduatedController.js, line 77
Default value: ""
default_aspect :String
Defined in: adventure/assets/Tangible.js, line 102
Default value: "on"
definite_article :String
Defined in: adventure/Asset.js, line 213
Inherited from: adventurejs.Asset#definite_article
Default value: 'the'
definite_name :Getter
Defined in: adventure/Asset.js, line 359
Inherited from: adventurejs.Asset#definite_name
description :*
Defined in: adventure/Asset.js, line 546
Inherited from: adventurejs.Asset#description
descriptions :Object
Defined in: adventure/Asset.js, line 158
Inherited from: adventurejs.Asset#descriptions
description
is required, all others
are optional. Most of these apply only to Tangible Asset.
descriptions.description
-descriptions.brief
- used for room descriptions if player has typed "brief"descriptions.verbose
- used for room descriptions if player has typed "verbose"descriptions.listen
- used if player types "listen" or "listen to thing"descriptions.in
- used if player types "look in thing"descriptions.through
- used if player types "look through thing"descriptions.smell
- used if player types "smell thing"descriptions.taste
- used if player types "taste thing"descriptions.touch
- used if player types "touch thing"descriptions.careful
- used if player types "carefully examine thing"
did :Object
Defined in: adventure/Asset.js, line 328
Inherited from: adventurejs.Asset#did
dimensions :Object
Defined in: adventure/assets/Tangible.js, line 548
Default value: {}
dimensions :Object
Defined in: adventure/assets/Tangible.js, line 569
Default value: {}
direction :String
Defined in: adventure/assets/tangibles/things/Aperture.js, line 78
Default value: ""
Todos: Use lookup table for this? In a GUI this would be a pull-down menu.
dont_use_articles :Boolean
Defined in: adventure/Asset.js, line 240
Inherited from: adventurejs.Asset#dont_use_articles
Default value: false
dov :Boolean
Defined in: adventure/Asset.js, line 62
Inherited from: adventurejs.Asset#dov
Default value: {}
emits :Boolean
Defined in: adventure/assets/Tangible.js, line 496
Default value: false
Todos: Write logic for this.
exclude_from_lookup :Boolean
Defined in: adventure/Asset.js, line 132
Inherited from: adventurejs.Asset#exclude_from_lookup
Default value: false
exit :String
Defined in: adventure/assets/tangibles/things/Aperture.js, line 87
Default value: ""
game :Getter
Defined in: adventure/Atom.js, line 103
Inherited from: adventurejs.Atom#game
this.game
.
image :String
Defined in: adventure/Asset.js, line 342
Inherited from: adventurejs.Asset#image
indefinite_article :String
Defined in: adventure/Asset.js, line 221
Inherited from: adventurejs.Asset#indefinite_article
Default value: 'a'
indefinite_name :Getter
Defined in: adventure/Asset.js, line 386
Inherited from: adventurejs.Asset#indefinite_name
iov :Boolean
Defined in: adventure/Asset.js, line 80
Inherited from: adventurejs.Asset#iov
Default value: {}
is :Object
Defined in: adventure/Asset.js, line 37
Inherited from: adventurejs.Asset#is
asset.is.state
.
Note that there is also an asset.$is() method which
is related to this, but is a distinct function.
is.abstract :Boolean
Defined in: adventure/Asset_Is.js, line 88
Inherited from: adventurejs.Asset#is.abstract
Default value: false
Nested property of Is
is.buttoned :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 142
Default value: false
Nested property of Is
is.carried :Getter
Defined in: adventure/assets/Tangible_Is.js, line 362
Nested property of Is
is.closed :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 164
Default value: false
Nested property of Is
is.cold_source :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 225
Default value: false
Nested property of Is
is.collection :Boolean
Defined in: adventure/Asset_Is.js, line 48
Inherited from: adventurejs.Asset#is.collection
Default value: true
Nested property of Is
is.connected_by :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 239
Default value: {}
Nested property of Is
is.deep_nest :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 195
Default value: false
Nested property of Is
is.destroyed :Boolean
Defined in: adventure/Asset_Is.js, line 33
Inherited from: adventurejs.Asset#is.destroyed
Default value: false
Nested property of Is
is.distant :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 104
Default value: false
Nested property of Is
is.extant :Boolean
Defined in: adventure/Asset_Is.js, line 41
Inherited from: adventurejs.Asset#is.extant
Default value: true
Nested property of Is
is.false_nest :Boolean
is.fixed :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 149
Default value: false
Nested property of Is
is.global :Boolean
Defined in: adventure/Asset_Is.js, line 79
Inherited from: adventurejs.Asset#is.global
Default value: false
Nested property of Is
is.heat_source :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 218
Default value: false
Nested property of Is
is.hollow :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 74
Default value: false
Nested property of Is
is.inhands :Getter
Defined in: adventure/assets/Tangible_Is.js, line 371
Nested property of Is
is.initialized :Boolean
Defined in: adventure/Asset_Is.js, line 62
Inherited from: adventurejs.Asset#is.initialized
Default value: false
Nested property of Is
is.known :Boolean
Defined in: adventure/Asset_Is.js, line 26
Inherited from: adventurejs.Asset#is.known
Default value: false
Nested property of Is
is.light_source :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 211
Default value: false
Nested property of Is
is.listed_in_parent :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 97
Default value: true
Nested property of Is
is.listed_in_room :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 81
Default value: true
Nested property of Is
is.locked :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 157
Default value: false
Nested property of Is
is.nameless :Boolean
Defined in: adventure/Asset_Is.js, line 69
Inherited from: adventurejs.Asset#is.nameless
Default value: false
Nested property of Is
is.on :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 232
Default value: false
Nested property of Is
is.on :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 246
Default value: false
Nested property of Is
is.plugged :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 35
Inherited from: adventurejs.Asset#is.plugged
Default value: false
Nested property of Is
is.pluggedIn :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 42
Inherited from: adventurejs.Asset#is.pluggedIn
Default value: false
Nested property of Is
is.plural :Boolean
Defined in: adventure/Asset_Is.js, line 105
Inherited from: adventurejs.Asset#is.plural
Default value: false
Nested property of Is
is.present :Getter
Defined in: adventure/assets/Tangible_Is.js, line 351
Nested property of Is
is.reachable :Getter
Defined in: adventure/assets/Tangible_Is.js, line 380
Nested property of Is
is.reservoir :Getter
Defined in: adventure/assets/Tangible_Is.js, line 342
Nested property of Is
is.screwed :Boolean|Int
Defined in: adventure/assets/Tangible_Is.js, line 128
Default value: false
Nested property of Is
is.sealed :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 171
Default value: false
Nested property of Is
is.singleton :Boolean
Defined in: adventure/Asset_Is.js, line 95
Inherited from: adventurejs.Asset#is.singleton
Default value: false
Nested property of Is
Todos: Have only applied this to several special global assets, and have not implemented any code around it. Is it still useful?
is.supported :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 64
Default value: false
Nested property of Is
is.takeable :Getter
Defined in: adventure/assets/Tangible_Is.js, line 398
Nested property of Is
is.typing_target :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 57
Default value: false
Nested property of Is
is.unleavable :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 178
Default value: false
Nested property of Is
is.unlisted_but_list_children :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 88
Default value: false
Nested property of Is
is.validated :Boolean
Defined in: adventure/Asset_Is.js, line 55
Inherited from: adventurejs.Asset#is.validated
Default value: false
Nested property of Is
is.viewport :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 187
Default value: false
Nested property of Is
is.visible :Getter
Defined in: adventure/assets/Tangible_Is.js, line 389
Nested property of Is
is.watertight :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 112
Default value: false
Nested property of Is
Todos: Write logic for this. Is this the same as airtight?
is.worn :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 121
Default value: false
Nested property of Is
is.zipped :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 135
Default value: false
Nested property of Is
list_group :int
Defined in: adventure/assets/Tangible.js, line 656
Default value: 0
Todos: Implement this or remove it.
location_required :Boolean
Defined in: adventure/assets/Tangible.js, line 522
Default value: false
location_unneccessary :Boolean
Defined in: adventure/assets/Tangible.js, line 531
Default value: false
min_light_required_to_see :float
Defined in: adventure/assets/Tangible.js, line 539
Default value: 0.5
Todos: Write logic for this in selectVisible.js
must :Object
Defined in: adventure/Asset.js, line 55
Inherited from: adventurejs.Asset#must
must.hold_to_read :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 54
Default value: false
Nested property of Must
must.hold_to_see_through :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 33
Default value: false
Nested property of Must
must.hold_to_see_with :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 26
Default value: false
Nested property of Must
must.let_go_after_swing :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 61
Default value: false
Nested property of Must
must.wear_to_see_through :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 47
Default value: false
Nested property of Must
must.wear_to_see_with :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 40
Default value: false
Nested property of Must
Name :String
Defined in: adventure/Atom.js, line 90
Inherited from: adventurejs.Atom#Name
name_is_proper :Boolean
Defined in: adventure/Asset.js, line 197
Inherited from: adventurejs.Asset#name_is_proper
Default value: false
noun :String
Defined in: adventure/Asset.js, line 250
Inherited from: adventurejs.Asset#noun
on_tie_to_drag_behind_rope :Boolean
Defined in: adventure/assets/Tangible.js, line 455
Default value: false
on_tie_to_this_take_this :Boolean
Defined in: adventure/assets/Tangible.js, line 446
Default value: false
parts :Array
Defined in: adventure/assets/Tangible.js, line 752
Default value: []
MyGame.createAsset({
class: "Sink",
name: "sink",
place: { in: "Bathroom" },
descriptions:{
look: function()
{
return "A pedestal sink with porcelain handles and
a stainless steel faucet. Its drain appears to be
$( sink drain is| open or| closed ). ";
}
},
parts: [
// each of these is a name of another Asset
"hot water handle",
"cold water handle",
"faucet",
"drain",
"plug"
],
});
place :Object
Defined in: adventure/assets/Tangible.js, line 880
player_can_exit :Boolean
Defined in: adventure/assets/Tangible.js, line 289
Default value: false
plural :String
Defined in: adventure/Asset.js, line 289
Inherited from: adventurejs.Asset#plural
position :Object
Defined in: adventure/assets/Tangible.js, line 623
Default value: {x:0,y:0,z:0}
- managing reachability of objects that are on top of other things
- managing reachability of objects in the room while player is climbing or standing atop a thing
- dividing a room up into reachable/unreachable spaces
- managing player depth in an underwater location
- managing player position while flying/floating/levitating
MyGame.createAsset({
class: "Stalactite",
name: "stalactite",
place: { on: "Colossal Cave" },
descriptions: {look: "It clings tight to the ceiling. ",},
height: -2,
position: { x:0, y:5, z:0 },
});
Also see related height.
possessive :String
Defined in: adventure/Asset.js, line 267
Inherited from: adventurejs.Asset#possessive
posture_position :Boolean
Defined in: adventure/assets/Tangible.js, line 303
Default value: "default"
this.game.dictionary.getStringLookup( type, value )
.
Can be referenced in custom code through
MyGame.dictionary.getStringLookup( type, value )
.
print_bold :Boolean
Defined in: adventure/Asset.js, line 102
Inherited from: adventurejs.Asset#print_bold
Default value: false
print_class :String
Defined in: adventure/Asset.js, line 124
Inherited from: adventurejs.Asset#print_class
Default value: ""
print_italic :Boolean
Defined in: adventure/Asset.js, line 109
Inherited from: adventurejs.Asset#print_italic
Default value: false
print_open_or_closed :Boolean
Defined in: adventure/assets/Tangible.js, line 868
Default value: false
print_style :String
Defined in: adventure/Asset.js, line 116
Inherited from: adventurejs.Asset#print_style
Default value: ""
pronoun :String
Defined in: adventure/Asset.js, line 259
Inherited from: adventurejs.Asset#pronoun
propername :String
Defined in: adventure/Asset.js, line 204
Inherited from: adventurejs.Asset#propername
proxy :Getter
Defined in: adventure/Asset.js, line 536
Inherited from: adventurejs.Asset#proxy
quirks :Object
Defined in: adventure/Asset.js, line 91
Inherited from: adventurejs.Asset#quirks
quirks.stand_means_get_off
set to true, player
will get off the chair, as opposed to trying to stand in
place on the chair.
quirks.climb_means_go_on :Boolean
Defined in: adventure/assets/Tangible.js, line 110
Default value: false
Nested property of Quirks
quirks.climb_means_stand_on :Boolean
Defined in: adventure/assets/Tangible.js, line 119
Default value: false
Nested property of Quirks
quirks.flick_means_toggle :Boolean
Defined in: adventure/assets/Tangible.js, line 274
Default value: false
Nested property of Quirks
quirks.flip_means_toggle :Boolean
Defined in: adventure/assets/Tangible.js, line 242
Default value: false
Nested property of Quirks
quirks.get_off_means_go_down :Boolean
Defined in: adventure/assets/Tangible.js, line 171
Default value: false
Nested property of Quirks
quirks.get_on_means_go_up :Boolean
Defined in: adventure/assets/Tangible.js, line 162
Default value: false
Nested property of Quirks
quirks.get_up_means_get_off :Boolean
Defined in: adventure/assets/Tangible.js, line 153
Default value: false
Nested property of Quirks
quirks.in_means_on :Boolean
Defined in: adventure/assets/Tangible.js, line 182
Default value: false
Nested property of Quirks
quirks.jump_means_jump_off :Boolean
Defined in: adventure/assets/Tangible.js, line 210
Default value: false
Nested property of Quirks
quirks.jump_means_jump_on :Boolean
Defined in: adventure/assets/Tangible.js, line 202
Default value: true
Nested property of Quirks
quirks.let_go_of_means_go_down :Boolean
Defined in: adventure/assets/Tangible.js, line 487
Default value: false
Nested property of Quirks
quirks.let_go_of_means_go_off :Boolean
Defined in: adventure/assets/Tangible.js, line 478
Default value: false
Nested property of Quirks
quirks.look_with_means_look_through :Boolean
Defined in: adventure/assets/Tangible.js, line 393
Default value: false
Nested property of Quirks
quirks.pick_means_unlock :Boolean
Defined in: adventure/assets/Tangible.js, line 344
Default value: false
Nested property of Quirks
quirks.point_means_aim :Boolean
Defined in: adventure/assets/Tangible.js, line 666
Default value: false
Nested property of Quirks
quirks.press_means_toggle :Boolean
Defined in: adventure/assets/Tangible.js, line 250
Default value: false
Nested property of Quirks
quirks.pull_means_open :Boolean
Defined in: adventure/assets/Tangible.js, line 128
Default value: false
Nested property of Quirks
quirks.pull_means_open :Boolean
Defined in: adventure/assets/Tangible.js, line 136
Default value: false
Nested property of Quirks
quirks.pull_means_toggle :Boolean
Defined in: adventure/assets/Tangible.js, line 266
Default value: false
Nested property of Quirks
quirks.push_means_toggle :Boolean
Defined in: adventure/assets/Tangible.js, line 258
Default value: false
Nested property of Quirks
quirks.put_means_pour :Boolean
Defined in: adventure/assets/Tangible.js, line 192
Default value: false
Nested property of Quirks
quirks.stand_means_get_off :Boolean
Defined in: adventure/assets/Tangible.js, line 144
Default value: false
Nested property of Quirks
quirks.step_on_means_stamp_on :Boolean
Defined in: adventure/assets/Tangible.js, line 225
Default value: false
Nested property of Quirks
quirks.step_on_means_stand_on :Boolean
Defined in: adventure/assets/Tangible.js, line 233
Default value: false
Nested property of Quirks
quirks.take_means_hold :Boolean
Defined in: adventure/assets/Tangible.js, line 470
Default value: false
Nested property of Quirks
quirks.write_on_means_write_in :Boolean
Defined in: adventure/assets/Tangible.js, line 414
Default value: false
Nested property of Quirks
redirected_verbs :Boolean
Defined in: adventure/Asset.js, line 350
Default value: {}
registerableClasses :Object
Defined in: adventure/assets/Tangible.js, line 803
Default value: {}
registered_parts :Object
Defined in: adventure/assets/Tangible.js, line 795
Default value: {}
short_name :Getter
Defined in: adventure/Asset.js, line 373
Inherited from: adventurejs.Asset#short_name
show_things_this_is_tied_to_in_description :Boolean
Defined in: adventure/assets/Tangible.js, line 463
Default value: true
singlePluralPairs :Array
Defined in: adventure/Asset.js, line 277
Inherited from: adventurejs.Asset#singlePluralPairs
split_name_for_world_lookup :Boolean
Defined in: adventure/Asset.js, line 141
Inherited from: adventurejs.Asset#split_name_for_world_lookup
Default value: true
But, an author might want to name a thing, eg, "hole in the ground", in which case we wind up with lookup table entries for "hole" and "in" and "the" and "ground", which is likely to lead to bad input parsing. To avoid name splitting, set split_name_for_world_lookup to false. The object's full name will still be added to the lookup.
things_player_can_climb_to_from_this :Array
Defined in: adventure/assets/Tangible.js, line 282
Default value: []
things_player_can_jump_to_from_this :Array
Defined in: adventure/assets/Tangible.js, line 218
Default value: []
things_player_can_reach_from_this :Array
Defined in: adventure/assets/Tangible.js, line 676
Default value: []
things_player_can_reach_from_this is a broad catchall that covers all nesting options. What this means is that players can reach assets in this list no matter how they are nested within this asset. Going back to the example of the chair and desk, if the chair has this property set thusly...
this.things_player_can_reach_from_this = [ 'desk' ];
...it means that the player, seated in the chair,
can reach any part of the desk: not just stuff that's on it, but also stuff
under it or behind it. That might be fine for your purposes.
Or, you might want more granular control. Let's say there's an electrical outlet under the desk,
and you want that players shouldn't be able to reach it without actually crawling under the desk.
If you need that kind of precision, you can manage reachability for each aspect of an asset.
For more information about that, see
Aspect.things_player_can_reach_from_this_aspect
and
Aspect.things_player_can_reach_from_positions_of_this_aspect.
things_player_can_reach_from_top_of_this :Array
Defined in: adventure/assets/Tangible.js, line 705
Default value: []
this.things_player_can_reach_from_top_of_this = [ 'window' ];
things_player_can_reach_from_this is a convenience method for a common situation.
If you need more control over reachability from specific positions within an aspect,
like left/right/front/back, you can manage that at the aspect level.
For more information about that, see
Aspect.things_player_can_reach_from_this_aspect
and
Aspect.things_player_can_reach_from_positions_of_this_aspect.
things_player_can_reach_from_top_of_this :Array
Defined in: adventure/assets/Tangible.js, line 728
Default value: []
this.things_player_can_reach_from_bottom_of_this = [ 'alcove' ];
things_player_can_reach_from_bottom_of_this is a convenience method for a common situation.
If you need more control over reachability from specific positions within an aspect,
like left/right/front/back, you can manage that at the aspect level.
For more information about that, see
Aspect.things_player_can_reach_from_this_aspect
and
Aspect.things_player_can_reach_from_positions_of_this_aspect.
things_player_can_swing_to_across_this :Getter/Setter
Defined in: adventure/assets/Tangible.js, line 849
Default value: false
things_player_can_swing_to_from_this :Array
Defined in: adventure/assets/Tangible.js, line 296
Default value: []
to_be :Getter
Defined in: adventure/Asset.js, line 580
Inherited from: adventurejs.Asset#to_be
tried :Object
Defined in: adventure/Asset.js, line 335
Inherited from: adventurejs.Asset#tried
typing_target_id :String
Defined in: adventure/assets/Tangible.js, line 437
Default value: ""
use_definite_article_in_lists :Boolean
Defined in: adventure/Asset.js, line 229
Inherited from: adventurejs.Asset#use_definite_article_in_lists
Default value: false
use_once_message :Boolean
Defined in: adventure/assets/Tangible.js, line 353
Default value: false
written_strings :Array
Defined in: adventure/assets/Tangible.js, line 423
Default value: []