Scenery: global_sky
Instance of: adventurejs.Scenery
Defined in: adventure/assets/tangibles/scenery/GlobalSky.js, line 6
More info: NextSteps_GlobalScenery
global_sky is an instance of Scenery. Global scenery provides a way to return a message when a player examines distant scenery that has not specifically been coded but which a player might expect would be present, such as sun, sky, moon, stars, the air, etc. Messages can be customized and scenery enabled/disabled by Room, by Zone, or for the entire Game. GlobalScenery objects are disabled by default. To learn how to enable and customize them, see Global Scenery.
Example:
Here's an example of how to set GlobalScenery descriptions per Room. Though global Assets are, in fact, global, the descriptions you set for them in a Room are local to that Room, so that each Room can set different descriptions. Room settings take precedence over Zone settings or global settings.
MyGame.createAsset({
class: "Room",
name: "The Moors",
room_scenery:
{
global_moon: {
enabled: true,
description: "It's just a slightly brighter patch among the misty darkness. ",
},
global_stars: {
enabled: true,
description: "They're impossible to see through the thick mists. ",
},
global_sun: { enabled: false, }, // parser would return generic not found message
}
});
Here's an example of how to set GlobalScenery descriptions per Zone. Zones can be shared by multiple Rooms. Room settings take precedence over Zone settings, and Zone settings take precedence over global settings.
MyGame.createAsset({
class: "Zone",
name: "Frigid Wastes",
zone_scenery:
{
global_wind: {
enabled: true,
description: "The freezing wind tears your body heat to tatters. ",
},
global_sun: {
enabled: true,
description: "It's simultaneously washed out yet blindingly bright. ",
},
},
});
MyGame.createAsset({
class: "Room",
name: "Icy Flow",
zone: "Frigid Wastes",
description: "Stripped bare by icy winds. You begin to think you may die here. ",
});
Here's an example of how to set GlobalScenery descriptions for anywhere in the game. These will be presented in every Room, unless overridden by Zone or Room settings.
MyGame.setGlobalDescriptions({
global_sun: {
enabled: true,
description: "Sun and moon are visible together in the strange sky. ",
},
global_moon: {
enabled: true,
description: "Moon and sun revolve together in the strange twilit sky. ",
},
});
To learn more, see Global Scenery.
Private Constructor:
MyGame.createGlobalScenery({ "name": "global_sky", [...] });
global_sky is a predefined instance of Scenery that gets constructed automatically at runtime. It is defined in the library as a generic object, and then passed to Game#createGlobalScenery for construction, validation, and initialization. Because this is predefined, authors should not need to create new instances. For information on modifying predefined Scenery, see Global Scenery.
GlobalScenery are instances of adventurejs.Scenery (and not a unique global class). Global assets can be referenced from anywhere in the game world and exist primarily to catch player inputs that refer to things that might be present, but aren't. For example, if a player enters "examine east exit" in a room which hasn't got one.
Authors can modify global_sky via their game files through the use of adventurejs.Game#setGlobalDescriptions.
- Index
- Methods
- Properties
Index
Methods:
- Inherited from Asset $can
- Inherited from Tangible $is
- Inherited from Tangible $moveTo
- Inherited from Asset $must
- Inherited from Tangible addAssetAt
- Inherited from Asset addWordsToLookup
- Inherited from Asset aliases
- Inherited from Tangible areAnscestorsClosed
- Inherited from Tangible areAnscestorsKnown
- Inherited from Tangible areAnscestorsOpen
- Inherited from Tangible areAnscestorsUnknown
- Inherited from Asset callAction
- Inherited from Tangible canBePut
- Inherited from Tangible canContainAnySubstance
- Inherited from Tangible canContainAssetAt
- Inherited from Tangible canPlayerNest
- Inherited from Tangible canPlayerReachThatFromThis
- Inherited from Asset canSetVerbState
- Inherited from Tangible destroy
- Inherited from Asset didDoVerbs
- Inherited from Asset didIoVerbs
- Inherited from Tangible doesContainAnyAsset
- Inherited from Tangible doesContainAnyAssetAt
- Inherited from Tangible doesContainAnySubstance
- Inherited from Tangible doesContainAnySubstanceAt
- Inherited from Tangible doesContainAsset
- Inherited from Tangible doesContainAssetAt
- Inherited from Tangible doesContainSubstance
- Inherited from Tangible doesContainSubstanceAt
- Inherited from Asset DOVallowOnce
- Inherited from Asset DOVallowWithAnything
- Inherited from Asset DOVallowWithAsset
- Inherited from Asset DOVallowWithNothing
- Inherited from Asset DOVdidDo
- Inherited from Asset DOVdidDoCount
- Inherited from Asset DOVdidTry
- Inherited from Asset DOVdidTryCount
- Inherited from Asset DOVgetConnectionCount
- Inherited from Asset DOVgetConnections
- Inherited from Asset DOVgetMaxConnections
- Inherited from Asset DOVhasIndirectObjects
- Inherited from Asset DOVhasMaxConnections
- Inherited from Asset DOVincrementDoCount
- Inherited from Asset DOVincrementTryCount
- Inherited from Asset DOVisConnectedToAnything
- Inherited from Asset DOVisConnectedToAsset
- Inherited from Asset DOVisConnectedToNothing
- Inherited from Asset DOVsetConnection
- Inherited from Asset DOVsetWithAsset
- Inherited from Asset DOVsetWithClass
- Inherited from Asset DOVunsetConnection
- Inherited from Tangible findClassInThis
- Inherited from Tangible get
- Inherited from Tangible getAllContents
- Inherited from Tangible getAllNestedContents
- Inherited from Tangible getAncestorId
- Inherited from Tangible getAnySubstanceThisContains
- Inherited from Tangible getAspectAt
- Inherited from Tangible getAspectWithVessel
- Inherited from Tangible getClosedAnscestors
- Inherited from Tangible getContentsAt
- Inherited from Tangible getCountOfListableContentsAt
- Inherited from Asset getDescription
- Inherited from Asset getIndirectDescription
- Inherited from Atom getInheritance
- Inherited from Tangible getListableContents
- Inherited from Tangible getNestOrPlacePreposition
- Inherited from Tangible getOpenOrClosed
- Inherited from Tangible getPlaceAspect
- Inherited from Tangible getPlaceAsset
- Inherited from Tangible getPlaceAssetId
- Inherited from Tangible getPlacePreposition
- Inherited from Tangible getPrintableListOfContents
- Inherited from Tangible getRoomAsset
- Inherited from Tangible getRoomId
- Inherited from Tangible getRopesThatBlockTravel
- Inherited from Tangible getSubstanceAt
- Inherited from Tangible getThingThisIsTiedToPlayerBy
- Inherited from Tangible getTiedThingsThatDragOnTravel
- Inherited from Tangible getVesselAt
- Inherited from Tangible getY
- Inherited from Tangible getYBottom
- Inherited from Tangible getYRange
- Inherited from Tangible getYTop
- Inherited from Asset has
- Inherited from Asset hasAction
- Inherited from Tangible hasAspectAt
- Inherited from Atom hasClass
- Inherited from Tangible hasContentsAtAspect
- Inherited from Asset hasDescription
- Inherited from Asset hasIndirectDescription
- Inherited from Tangible hasListableContents
- Inherited from Tangible hasPlace
- Inherited from Tangible hasPropertyOnAspectAt
- Inherited from Tangible hasRopesThatBlockTravel
- Inherited from Tangible hasTiedThingsThatDragOnTravel
- Inherited from Tangible hasVessel
- Inherited from Tangible hasVesselAtAspect
- Inherited from Asset incrementDoVerbCount
- Inherited from Asset incrementTryVerbCount
- Inherited from Tangible initialize
- Inherited from Asset IOVallowOnce
- Inherited from Asset IOVallowWithAnything
- Inherited from Asset IOVallowWithAsset
- Inherited from Asset IOVallowWithNothing
- Inherited from Asset IOVdidDo
- Inherited from Asset IOVdidDoCount
- Inherited from Asset IOVdidTry
- Inherited from Asset IOVdidTryCount
- Inherited from Asset IOVgetConnectionCount
- Inherited from Asset IOVgetConnections
- Inherited from Asset IOVgetMaxConnections
- Inherited from Asset IOVhasDirectObjects
- Inherited from Asset IOVhasMaxConnections
- Inherited from Asset IOVincrementDoCount
- Inherited from Asset IOVincrementTryCount
- Inherited from Asset IOVisConnectedToAnything
- Inherited from Asset IOVisConnectedToAsset
- Inherited from Asset IOVisConnectedToNothing
- Inherited from Asset IOVsetConnection
- Inherited from Asset IOVsetWithAsset
- Inherited from Asset IOVsetWithClass
- Inherited from Asset IOVunsetConnection
- Inherited from Asset isDOV
- Inherited from Tangible isIn
- Inherited from Asset isIOV
- Inherited from Tangible isPlacedAtAspect
- Inherited from Tangible isPlacedAtAspectAndAsset
- Inherited from Asset isState
- Inherited from Tangible isWithinYRange
- Inherited from Tangible linkRegisteredParts
- Inherited from Tangible moveFrom
- Inherited from Tangible moveTo
- Inherited from Tangible onAddSubstanceToThis
- Inherited from Tangible onChangeGravity
- Inherited from Tangible onChangeMoisture
- Inherited from Tangible onChangeTemperature
- Inherited from Tangible onMoveThatToThis
- Inherited from Tangible onNestThatToThis
- Inherited from Tangible onRemoveThatFromThis
- Inherited from Tangible onSubtractSubstanceFromThis
- Inherited from Tangible onTieThisToThat
- Inherited from Tangible onUnnestThatFromThis
- Inherited from Tangible onUntieThisFromThat
- Inherited from Tangible put
- Inherited from Asset redirectVerb
- Inherited from Tangible registerParts
- Inherited from Tangible removeAssetAt
- Inherited from Tangible removeThatFromThis
- Inherited from Atom set
- Inherited from Tangible setAllAspectsContentsKnown
- Inherited from Tangible setAllAspectsContentsSeen
- Inherited from Tangible setAspectAt
- Inherited from Tangible setAspectContentsKnown
- Inherited from Tangible setAspectContentsSeen
- Inherited from Tangible setAttachmentsKnown
- Inherited from Tangible setClosed
- Inherited from Asset setDOV
- Inherited from Asset setDOVs
- Inherited from Asset setIOV
- Inherited from Asset setIOVs
- Inherited from Tangible setKnown
- Inherited from Asset setLinkedState
- Inherited from Tangible setLocked
- Inherited from Asset setObjectOfVerbs
- Inherited from Tangible setPlace
- Inherited from Tangible setPosition
- Inherited from Tangible setSealed
- Inherited from Tangible setSeen
- Inherited from Asset setState
- Inherited from Tangible setUsed
- Inherited from Asset setVerbSubscription
- Inherited from Asset setVerbSubscriptionsWithAssets
- Inherited from Asset setVerbSubscriptionsWithConnection
- Inherited from Tangible setVesselAt
- Inherited from Tangible setX
- Inherited from Tangible setY
- Inherited from Tangible setZ
- Inherited from Asset toggleState
- Inherited from Asset undestroy
- Inherited from Tangible 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
- Inherited from Tangible validate
Properties:
- Inherited from Tangible absorption_quantity
- Inherited from Asset adjectives
- Inherited from Tangible aperture
- Inherited from Tangible append_written_strings_to_description
- Inherited from Asset article_name
- Inherited from Asset articlename
- Inherited from Asset Articlename
- Inherited from Tangible aspects
- Inherited from Tangible buoyancy
- Inherited from Asset can
- Inherited from Tangible can.auto_open
- Inherited from Tangible can.auto_unlock
- Inherited from Tangible can.auto_unseal
- Inherited from Tangible can.be_swung_at
- Inherited from Asset collection
- Inherited from Tangible control_positions
- Inherited from Tangible control_target_id
- Inherited from Tangible current_position
- Inherited from Tangible default_aspect
- Inherited from Tangible default_aspect_for_climb
- Inherited from Tangible default_aspect_for_swing_to
- Inherited from Tangible default_posture_for_swing_to
- Inherited from Asset definite_article
- Inherited from Asset definite_name
- Inherited from Asset description
- Inherited from Asset descriptions
- Inherited from Asset did_do_verb
- Inherited from Asset did_do_verb_count
- Inherited from Asset did_try_verb
- Inherited from Asset did_try_verb_count
- Inherited from Tangible dimensions
- Inherited from Tangible direction
- Inherited from Asset dont_use_articles
- Inherited from Asset dov
- Inherited from Tangible emits
- Inherited from Asset exclude_from_lookup
- Inherited from Tangible 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
- Inherited from Tangible is.buttoned
- Inherited from Tangible is.climbable
- Inherited from Tangible is.closed
- Inherited from Asset is.collection
- Inherited from Tangible is.deep_nest
- Inherited from Asset is.destroyed
- Inherited from Tangible is.distant
- Inherited from Asset is.extant
- Inherited from Tangible is.false_nest
- Inherited from Tangible is.fixed
- Inherited from Asset is.global
- Inherited from Tangible is.hidden
- Inherited from Tangible is.hollow
- Inherited from Asset is.initialized
- Inherited from Asset is.known
- Inherited from Tangible is.listed_in_parent
- Inherited from Tangible is.listed_in_room
- Inherited from Tangible is.locked
- Inherited from Tangible is.lookthroughable
- Inherited from Asset is.nameless
- Inherited from Tangible is.peddleable
- Inherited from Asset is.plugged
- Inherited from Asset is.pluggedIn
- Inherited from Tangible is.rideable
- Inherited from Tangible is.screwed
- Inherited from Tangible is.sealed
- Inherited from Asset is.singleton
- Inherited from Tangible is.skateable
- Inherited from Tangible is.supported
- Inherited from Tangible is.typing_target
- Inherited from Tangible is.unleavable
- Inherited from Tangible is.unlisted_but_list_children
- Inherited from Asset is.validated
- Inherited from Tangible is.watertight
- Inherited from Tangible is.worn
- Inherited from Tangible is.zipped
- Inherited from Tangible list_group
- Inherited from Tangible location_required
- Inherited from Tangible location_unneccessary
- Inherited from Tangible min_light_required_to_see
- Inherited from Asset must
- Inherited from Tangible must.be_in_hands_to_look_through
- Inherited from Tangible must.be_in_hands_to_look_with
- Inherited from Tangible must.be_in_hands_to_read
- Inherited from Tangible must.be_worn_to_look_with
- Inherited from Tangible must.let_go_after_swing
- Inherited from Atom Name
- Inherited from Asset name_is_proper
- Inherited from Asset noun
- Inherited from Tangible on_drink_destroy
- Inherited from Tangible on_drink_empty
- Inherited from Tangible on_eat_destroy
- Inherited from Tangible on_tie_to_drag_behind_rope
- Inherited from Tangible on_tie_to_this_take_this
- Inherited from Tangible opacity
- Inherited from Tangible parts
- Inherited from Tangible place
- Inherited from Tangible player_can_exit
- Inherited from Tangible player_can_hang_on_this
- Inherited from Tangible player_knows_its_hidden
- Inherited from Asset plural
- Inherited from Tangible position
- Inherited from Tangible posture_position
- Inherited from Asset print_bold
- Inherited from Asset print_italic
- Inherited from Tangible print_open_or_closed
- Inherited from Asset pronoun
- Inherited from Asset propername
- Inherited from Asset quirks
- Inherited from Tangible quirks.climb_means_go_on
- Inherited from Tangible quirks.climb_means_stand_on
- Inherited from Tangible quirks.crawl_means_go
- Inherited from Tangible quirks.get_up_means_get_off
- Inherited from Tangible quirks.go_on_means_climb
- Inherited from Tangible quirks.in_means_on
- Inherited from Tangible quirks.jump_means_jump_off
- Inherited from Tangible quirks.jump_means_jump_on
- Inherited from Tangible quirks.let_go_of_means_go_down
- Inherited from Tangible quirks.let_go_of_means_go_off
- Inherited from Tangible quirks.look_with_means_look_through
- Inherited from Tangible quirks.pick_means_unlock
- Inherited from Tangible quirks.point_means_aim
- Inherited from Tangible quirks.put_means_pour
- Inherited from Tangible quirks.stand_means_get_off
- Inherited from Tangible quirks.step_on_means_stamp_on
- Inherited from Tangible quirks.step_on_means_stand_on
- Inherited from Tangible quirks.take_means_hold
- Inherited from Tangible quirks.write_on_means_write_in
- Inherited from Tangible redirected_verbs
- Inherited from Tangible registerableClasses
- Inherited from Tangible registered_parts
- Inherited from Tangible show_things_this_is_tied_to_in_description
- Inherited from Asset singlePluralPairs
- Inherited from Asset split_name_for_world_lookup
- Inherited from Tangible things_player_can_climb_to_from_this
- Inherited from Tangible things_player_can_do_all_verbs_to_from_this
- Inherited from Tangible things_player_can_jump_to_from_this
- Inherited from Tangible things_player_can_reach_from_this
- Inherited from Tangible things_player_can_reach_from_top_of_this
- Inherited from Tangible things_player_can_swing_to_across_this
- Inherited from Tangible things_player_can_swing_to_from_this
- Inherited from Tangible turn_positions
- Inherited from Tangible turn_rotation
- Inherited from Tangible turn_target_id
- Inherited from Tangible typing_target_id
- Inherited from Asset use_definite_article_in_lists
- Inherited from Tangible use_once_message
- Inherited from Tangible written_strings
Methods Collapse all |
$can()
Defined in: adventure/asset/$can.js, line 7
Inherited from: adventurejs.Asset#$can
$is(property, asset)
Defined in: adventure/assets/tangible/$is.js, line 6
Inherited from: adventurejs.Tangible#$is
Todos: Leaving open the possibility for other params.
Parameters:
-
property
String -
asset
Object
- assetA.$is("body")
- asking, is this asset a body of substance such as a lake or sandy desert?
- assetA.$is("closed")
- asking, is this asset closed?
- 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", assetB)
- accepts any preposition, asking, is this asset in that aspect of that asset?
- 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("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("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 6
Inherited from: adventurejs.Tangible#$moveTo
Parameters:
-
aspect
String -
asset
Object
$must()
Defined in: adventure/asset/$must.js, line 7
Inherited from: adventurejs.Asset#$must
addAssetAt() → {Array}
Defined in: adventure/assets/tangible/addAssetAt.js, line 6
Inherited from: adventurejs.Tangible#addAssetAt
Returns:
Array
addWordsToLookup(words, type)
Defined in: adventure/asset/addWordsToLookup.js, line 6
Inherited from: adventurejs.Asset#addWordsToLookup
Parameters:
-
words
Array -
type
String
aliases()
Defined in: adventure/Asset.js, line 662
Inherited from: adventurejs.Asset#aliases
areAnscestorsClosed() → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsClosed.js, line 6
Inherited from: adventurejs.Tangible#areAnscestorsClosed
Returns:
Boolean
areAnscestorsKnown() → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsKnown.js, line 6
Inherited from: adventurejs.Tangible#areAnscestorsKnown
Returns:
Boolean
areAnscestorsOpen() → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsOpen.js, line 6
Inherited from: adventurejs.Tangible#areAnscestorsOpen
Returns:
Boolean
areAnscestorsUnknown(nestlevel) → {Boolean}
Defined in: adventure/assets/tangible/areAnscestorsUnknown.js, line 6
Inherited from: adventurejs.Tangible#areAnscestorsUnknown
Parameters:
-
nestlevel
int
Returns:
Boolean
callAction(hook, asset_name, params) → {Boolean}
Defined in: adventure/asset/callAction.js, line 6
Inherited from: adventurejs.Asset#callAction
Parameters:
-
hook
string -
asset_name
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. -
params
object
Arbitrary parameter object.
Returns:
Boolean
canBePut(aspect, asset) → {Boolean}
Defined in: adventure/assets/tangible/canBePlacedInAspectOfAsset.js, line 6
Inherited from: adventurejs.Tangible#canBePut
Parameters:
-
aspect
String -
asset
Object
with_assets
and
with_classes
properties.
Returns:
Boolean
canContainAnySubstance() → {Boolean}
Defined in: adventure/assets/tangible/canContainAnySubstance.js, line 6
Inherited from: adventurejs.Tangible#canContainAnySubstance
Returns:
Boolean
canContainAssetAt(object) → {Boolean}
Defined in: adventure/assets/tangible/canContainAssetAt.js, line 6
Inherited from: adventurejs.Tangible#canContainAssetAt
Parameters:
-
object
Object
Returns:
Boolean
canPlayerNest(aspect) → {Boolean}
Defined in: adventure/assets/tangible/canPlayerNest.js, line 9
Inherited from: adventurejs.Tangible#canPlayerNest
Parameters:
-
aspect
String
A Tangible Aspect ID.
Returns:
Boolean
canPlayerReachThatFromThis(object) → {Boolean}
Defined in: adventure/assets/tangible/canPlayerReachThatFromThis.js, line 6
Inherited from: adventurejs.Tangible#canPlayerReachThatFromThis
Parameters:
-
object
Object
Returns:
Boolean
canSetVerbState(verb) → {Boolean}
Defined in: adventure/asset/canSetVerbState.js, line 6
Inherited from: adventurejs.Asset#canSetVerbState
Parameters:
-
verb
String
Returns:
Boolean
destroy()
Defined in: adventure/assets/Tangible.js, line 1173
Inherited from: adventurejs.Tangible#destroy
didDoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didDoVerbs.js, line 6
Inherited from: adventurejs.Asset#didDoVerbs
Parameters:
-
verbs
Array
Returns:
Boolean
didIoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didIoVerbs.js, line 6
Inherited from: adventurejs.Asset#didIoVerbs
Parameters:
-
verbs
Array
Returns:
Boolean
doesContainAnyAsset() → {Boolean}
Defined in: adventure/assets/tangible/doesContainAnyAsset.js, line 6
Inherited from: adventurejs.Tangible#doesContainAnyAsset
Returns:
Boolean
doesContainAnyAssetAt(aspect) → {Boolean}
Defined in: adventure/assets/tangible/doesContainAnyAssetAt.js, line 6
Inherited from: adventurejs.Tangible#doesContainAnyAssetAt
Parameters:
-
aspect
String
Returns:
Boolean
doesContainAnySubstance() → {Boolean}
Defined in: adventure/assets/tangible/doesContainAnySubstance.js, line 6
Inherited from: adventurejs.Tangible#doesContainAnySubstance
Returns:
Boolean
doesContainAnySubstanceAt(aspect) → {Boolean}
Defined in: adventure/assets/tangible/doesContainAnySubstanceAt.js, line 6
Inherited from: adventurejs.Tangible#doesContainAnySubstanceAt
Parameters:
-
aspect
String
Returns:
Boolean
doesContainAsset(id) → {String}
Defined in: adventure/assets/tangible/doesContainAsset.js, line 6
Inherited from: adventurejs.Tangible#doesContainAsset
Parameters:
-
id
String
Returns:
String
doesContainAssetAt(id, aspect) → {Boolean}
Defined in: adventure/assets/tangible/doesContainAssetAt.js, line 6
Inherited from: adventurejs.Tangible#doesContainAssetAt
Parameters:
-
id
String -
aspect
String
Returns:
Boolean
doesContainSubstance(id) → {String}
Defined in: adventure/assets/tangible/doesContainSubstance.js, line 6
Inherited from: adventurejs.Tangible#doesContainSubstance
Parameters:
-
id
String
Returns:
String
doesContainSubstanceAt(id, aspect) → {Boolean}
Defined in: adventure/assets/tangible/doesContainSubstanceAt.js, line 6
Inherited from: adventurejs.Tangible#doesContainSubstanceAt
Parameters:
-
id
String -
aspect
String
Returns:
Boolean
DOVallowOnce(verb) → {Boolean}
Defined in: adventure/asset/DOVallowOnce.js, line 6
Inherited from: adventurejs.Asset#DOVallowOnce
Parameters:
-
verb
String
Returns:
Boolean
DOVallowWithAnything(verb) → {Boolean}
Defined in: adventure/asset/DOVallowWithAnything.js, line 6
Inherited from: adventurejs.Asset#DOVallowWithAnything
Parameters:
-
verb
String
Returns:
Boolean
DOVallowWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/DOVallowWithAsset.js, line 6
Inherited from: adventurejs.Asset#DOVallowWithAsset
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
DOVallowWithNothing(verb) → {Boolean}
Defined in: adventure/asset/DOVallowWithNothing.js, line 6
Inherited from: adventurejs.Asset#DOVallowWithNothing
Parameters:
-
verb
String
Returns:
Boolean
DOVdidDo(verb) → {Boolean}
Defined in: adventure/asset/DOVdidDo.js, line 6
Inherited from: adventurejs.Asset#DOVdidDo
Parameters:
-
verb
String
_didDo is an alias meant for authors.
Returns:
Boolean
DOVdidDoCount(verb) → {Int}
Defined in: adventure/asset/DOVdidDoCount.js, line 6
Inherited from: adventurejs.Asset#DOVdidDoCount
Parameters:
-
verb
String
_doCount is an alias meant for authors.
Returns:
Int
DOVdidTry(verb) → {Boolean}
Defined in: adventure/asset/DOVdidTry.js, line 6
Inherited from: adventurejs.Asset#DOVdidTry
Parameters:
-
verb
String
_didTry is an alias meant for authors.
Returns:
Boolean
DOVdidTryCount(verb) → {Boolean}
Defined in: adventure/asset/DOVdidTryCount.js, line 6
Inherited from: adventurejs.Asset#DOVdidTryCount
Parameters:
-
verb
String
_tryCount is an alias meant for authors.
Returns:
Boolean
DOVgetConnectionCount(verb) → {Int}
Defined in: adventure/asset/DOVgetConnectionCount.js, line 6
Inherited from: adventurejs.Asset#DOVgetConnectionCount
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
DOVgetConnections(verb) → {Array}
Defined in: adventure/asset/DOVgetConnections.js, line 6
Inherited from: adventurejs.Asset#DOVgetConnections
Parameters:
-
verb
String
The name of a verb.
Returns:
Array
DOVgetMaxConnections(verb) → {Int}
Defined in: adventure/asset/DOVgetMaxConnections.js, line 6
Inherited from: adventurejs.Asset#DOVgetMaxConnections
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
DOVhasIndirectObjects(verb) → {Boolean}
Defined in: adventure/asset/DOVhasIndirectObjects.js, line 6
Inherited from: adventurejs.Asset#DOVhasIndirectObjects
Parameters:
-
verb
String
Returns:
Boolean
DOVhasMaxConnections(verb) → {Boolean}
Defined in: adventure/asset/DOVhasMaxConnections.js, line 6
Inherited from: adventurejs.Asset#DOVhasMaxConnections
Parameters:
-
verb
String
The name of a verb.
Returns:
Boolean
DOVincrementDoCount(verb)
Defined in: adventure/asset/DOVincrementDoCount.js, line 6
Inherited from: adventurejs.Asset#DOVincrementDoCount
Parameters:
-
verb
String
DOVincrementTryCount(verb)
Defined in: adventure/asset/DOVincrementTryCount.js, line 6
Inherited from: adventurejs.Asset#DOVincrementTryCount
Parameters:
-
verb
String
DOVisConnectedToAnything(verb) → {Boolean}
Defined in: adventure/asset/DOVisConnectedToAnything.js, line 6
Inherited from: adventurejs.Asset#DOVisConnectedToAnything
Parameters:
-
verb
String
The name of a verb.
plugIn
or tie
. For example, if this asset
is a computer plugged into an outlet, this method would return true.
Returns:
Boolean
DOVisConnectedToAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/DOVisConnectedToAsset.js, line 6
Inherited from: adventurejs.Asset#DOVisConnectedToAsset
Parameters:
-
verb
String
The name of the verb to test. -
asset
Object | String
A game asset or asset id to test.
Returns:
Boolean
DOVisConnectedToNothing(verb) → {Boolean}
Defined in: adventure/asset/DOVisConnectedToNothing.js, line 6
Inherited from: adventurejs.Asset#DOVisConnectedToNothing
Parameters:
-
verb
String
The name of a verb.
asset.dov.plugIn.with_params.connections
to represent the computer's plugged in state.
Returns:
Boolean
DOVsetConnection(verb, asset)
Defined in: adventure/asset/DOVsetConnection.js, line 6
Inherited from: adventurejs.Asset#DOVsetConnection
Parameters:
-
verb
String -
asset
Object
DOVsetWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/DOVsetWithAsset.js, line 6
Inherited from: adventurejs.Asset#DOVsetWithAsset
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
DOVsetWithClass(verb, clas) → {Boolean}
Defined in: adventure/asset/DOVsetWithClass.js, line 6
Inherited from: adventurejs.Asset#DOVsetWithClass
Parameters:
-
verb
String -
clas
String
Returns:
Boolean
DOVunsetConnection(verb, asset)
Defined in: adventure/asset/DOVunsetConnection.js, line 6
Inherited from: adventurejs.Asset#DOVunsetConnection
Parameters:
-
verb
String -
asset
Object
findClassInThis(instanceClass) → {Array}
Defined in: adventure/assets/tangible/findClassInThis.js, line 6
Inherited from: adventurejs.Tangible#findClassInThis
Parameters:
-
instanceClass
String
Returns:
Array
get(property, qualifier)
Defined in: adventure/assets/tangible/$get.js, line 6
Inherited from: adventurejs.Tangible#get
Parameters:
-
property
String -
qualifier
String
- all - list things anywhere in 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 6
Inherited from: adventurejs.Tangible#getAllContents
Returns:
Array
getAllNestedContents() → {Array}
Defined in: adventure/assets/tangible/getAllNestedContents.js, line 6
Inherited from: adventurejs.Tangible#getAllNestedContents
Returns:
Array
getAncestorId() → {String}
Defined in: adventure/assets/tangible/getAncestorId.js, line 6
Inherited from: adventurejs.Tangible#getAncestorId
Returns:
String
getAnySubstanceThisContains() → {String}
Defined in: adventure/assets/tangible/getAnySubstanceThisContains.js, line 6
Inherited from: adventurejs.Tangible#getAnySubstanceThisContains
Returns:
String
getAspectAt(aspect) → {Object|Null}
Defined in: adventure/assets/tangible/getAspectAt.js, line 6
Inherited from: adventurejs.Tangible#getAspectAt
Parameters:
-
aspect
string
The aspect to get.
Returns:
Object
|
Null
getAspectWithVessel() → {String}
Defined in: adventure/assets/tangible/getAspectWithVessel.js, line 6
Inherited from: adventurejs.Tangible#getAspectWithVessel
Returns:
String
getClosedAnscestors() → {Array}
Defined in: adventure/assets/tangible/getClosedAnscestors.js, line 6
Inherited from: adventurejs.Tangible#getClosedAnscestors
Returns:
Array
getContentsAt() → {Array}
Defined in: adventure/assets/tangible/getContentsAt.js, line 6
Inherited from: adventurejs.Tangible#getContentsAt
Returns:
Array
getCountOfListableContentsAt(where) → {int}
Defined in: adventure/assets/tangible/getCountOfListableContentsAt.js, line 6
Inherited from: adventurejs.Tangible#getCountOfListableContentsAt
Parameters:
-
where
String
Returns:
int
getDescription(description) → {String}
Defined in: adventure/asset/getDescription.js, line 6
Inherited from: adventurejs.Asset#getDescription
Parameters:
-
description
String
Returns:
String
getIndirectDescription(indirect_aspect, indirect_asset, direct_aspect) → {String}
Defined in: adventure/asset/getIndirectDescription.js, line 6
Inherited from: adventurejs.Asset#getIndirectDescription
Parameters:
-
indirect_aspect
String -
indirect_asset
Object -
direct_aspect
String
Returns:
String
getInheritance() → {Array}
Defined in: adventure/Atom.js, line 151
Inherited from: adventurejs.Atom#getInheritance
Returns:
Array
getListableContents() → {Array}
Defined in: adventure/assets/tangible/getListableContents.js, line 6
Inherited from: adventurejs.Tangible#getListableContents
Returns:
Array
getNestOrPlacePreposition() → {Boolean}
Defined in: adventure/assets/tangible/getNestOrPlacePreposition.js, line 6
Inherited from: adventurejs.Tangible#getNestOrPlacePreposition
Returns:
Boolean
getOpenOrClosed() → {Array}
Defined in: adventure/assets/tangible/getOpenOrClosed.js, line 6
Inherited from: adventurejs.Tangible#getOpenOrClosed
Returns:
Array
getPlaceAspect() → {Object|null}
Defined in: adventure/assets/tangible/getPlaceAspect.js, line 6
Inherited from: adventurejs.Tangible#getPlaceAspect
Returns:
Object
|
null
getPlaceAsset() → {Object|Boolean}
Defined in: adventure/assets/tangible/getPlaceAsset.js, line 6
Inherited from: adventurejs.Tangible#getPlaceAsset
Returns:
Object
|
Boolean
getPlaceAssetId() → {String}
Defined in: adventure/assets/tangible/getPlaceAssetId.js, line 6
Inherited from: adventurejs.Tangible#getPlaceAssetId
Returns:
String
getPlacePreposition() → {String}
Defined in: adventure/assets/tangible/getPlacePreposition.js, line 6
Inherited from: adventurejs.Tangible#getPlacePreposition
Returns:
String
getPrintableListOfContents(params) → {String}
Defined in: adventure/assets/tangible/getPrintableListOfContents.js, line 6
Inherited from: adventurejs.Tangible#getPrintableListOfContents
Parameters:
-
params
Object
Returns:
String
getRoomAsset() → {String}
Defined in: adventure/assets/tangible/getRoomAsset.js, line 6
Inherited from: adventurejs.Tangible#getRoomAsset
Returns:
String
getRoomId() → {String}
Defined in: adventure/assets/tangible/getRoomId.js, line 6
Inherited from: adventurejs.Tangible#getRoomId
Returns:
String
getRopesThatBlockTravel() → {Array}
Defined in: adventure/assets/tangible/getRopesThatBlockTravel.js, line 6
Inherited from: adventurejs.Tangible#getRopesThatBlockTravel
Returns:
Array
getSubstanceAt() → {String}
Defined in: adventure/assets/tangible/getSubstanceAt.js, line 6
Inherited from: adventurejs.Tangible#getSubstanceAt
Returns:
String
getThingThisIsTiedToPlayerBy() → {Object}
Defined in: adventure/assets/tangible/getThingThisIsTiedToPlayerBy.js, line 6
Inherited from: adventurejs.Tangible#getThingThisIsTiedToPlayerBy
Returns:
Object
getTiedThingsThatDragOnTravel() → {Array}
Defined in: adventure/assets/tangible/getTiedThingsThatDragOnTravel.js, line 6
Inherited from: adventurejs.Tangible#getTiedThingsThatDragOnTravel
Returns:
Array
getVesselAt(aspect) → {Object|Null}
Defined in: adventure/assets/tangible/getVesselAt.js, line 6
Inherited from: adventurejs.Tangible#getVesselAt
Parameters:
-
aspect
string
The aspect to check.
Returns:
Object
|
Null
getY() → {Float}
Defined in: adventure/assets/tangible/getY.js, line 6
Inherited from: adventurejs.Tangible#getY
Returns:
Float
getYBottom() → {Float}
Defined in: adventure/assets/tangible/getYBottom.js, line 6
Inherited from: adventurejs.Tangible#getYBottom
Returns:
Float
getYRange() → {Object}
Defined in: adventure/assets/tangible/getYRange.js, line 6
Inherited from: adventurejs.Tangible#getYRange
Returns:
Object
getYTop() → {Float}
Defined in: adventure/assets/tangible/getYTop.js, line 6
Inherited from: adventurejs.Tangible#getYTop
Returns:
Float
has()
Defined in: adventure/asset/$has.js, line 7
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 6
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 6
Inherited from: adventurejs.Tangible#hasAspectAt
Parameters:
-
aspect
String
Returns:
Boolean
hasClass(prop) → {Boolean}
Defined in: adventure/Atom.js, line 131
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 6
Inherited from: adventurejs.Tangible#hasContentsAtAspect
Parameters:
-
aspect
String
Returns:
Boolean
hasDescription(description) → {String|Boolean}
Defined in: adventure/asset/hasDescription.js, line 6
Inherited from: adventurejs.Asset#hasDescription
Parameters:
-
description
String
Returns:
String
|
Boolean
hasIndirectDescription(indirect_aspect, indirect_asset, direct_aspect) → {String|Boolean}
Defined in: adventure/asset/hasIndirectDescription.js, line 6
Inherited from: adventurejs.Asset#hasIndirectDescription
Parameters:
-
indirect_aspect
String -
indirect_asset
Object -
direct_aspect
String
Returns:
String
|
Boolean
hasListableContents() → {Boolean}
Defined in: adventure/assets/tangible/hasListableContents.js, line 6
Inherited from: adventurejs.Tangible#hasListableContents
Todos: transparent containers
Returns:
Boolean
hasPlace() → {Boolean}
Defined in: adventure/assets/tangible/hasPlace.js, line 6
Inherited from: adventurejs.Tangible#hasPlace
Returns:
Boolean
hasPropertyOnAspectAt() → {Boolean}
Defined in: adventure/assets/tangible/hasPropertyOnAspectAt.js, line 6
Inherited from: adventurejs.Tangible#hasPropertyOnAspectAt
- this will likely go away
Returns:
Boolean
hasRopesThatBlockTravel() → {Boolean}
Defined in: adventure/assets/tangible/hasRopesThatBlockTravel.js, line 6
Inherited from: adventurejs.Tangible#hasRopesThatBlockTravel
Returns:
Boolean
hasTiedThingsThatDragOnTravel() → {Boolean}
Defined in: adventure/assets/tangible/hasTiedThingsThatDragOnTravel.js, line 6
Inherited from: adventurejs.Tangible#hasTiedThingsThatDragOnTravel
Returns:
Boolean
hasVessel() → {Boolean}
Defined in: adventure/assets/tangible/hasVessel.js, line 6
Inherited from: adventurejs.Tangible#hasVessel
Returns:
Boolean
hasVesselAtAspect(aspect) → {Boolean}
Defined in: adventure/assets/tangible/hasVesselAtAspect.js, line 6
Inherited from: adventurejs.Tangible#hasVesselAtAspect
Parameters:
-
aspect
String
Returns:
Boolean
incrementDoVerbCount(verb, index)
Defined in: adventure/asset/incrementDoVerbCount.js, line 6
Inherited from: adventurejs.Asset#incrementDoVerbCount
Parameters:
-
verb
String -
index
Int
incrementTryVerbCount(verb, index)
Defined in: adventure/asset/incrementTryVerbCount.js, line 6
Inherited from: adventurejs.Asset#incrementTryVerbCount
Parameters:
-
verb
String -
index
Int
initialize(game) → {Boolean}
Defined in: adventure/assets/Tangible.js, line 1150
Inherited from: adventurejs.Tangible#initialize
Parameters:
-
game
Object
- link related objects
- register parts
Returns:
Boolean
IOVallowOnce(verb) → {Boolean}
Defined in: adventure/asset/IOVallowOnce.js, line 6
Inherited from: adventurejs.Asset#IOVallowOnce
Parameters:
-
verb
String
Returns:
Boolean
IOVallowWithAnything(verb) → {Boolean}
Defined in: adventure/asset/IOVallowWithAnything.js, line 6
Inherited from: adventurejs.Asset#IOVallowWithAnything
Parameters:
-
verb
String
Returns:
Boolean
IOVallowWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/IOVallowWithAsset.js, line 6
Inherited from: adventurejs.Asset#IOVallowWithAsset
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
IOVallowWithNothing(verb) → {Boolean}
Defined in: adventure/asset/IOVallowWithNothing.js, line 6
Inherited from: adventurejs.Asset#IOVallowWithNothing
Parameters:
-
verb
String
Returns:
Boolean
IOVdidDo(verb) → {Boolean}
Defined in: adventure/asset/IOVdidDo.js, line 6
Inherited from: adventurejs.Asset#IOVdidDo
Parameters:
-
verb
String
_iDidDo is an alias meant for authors.
Returns:
Boolean
IOVdidDoCount(verb) → {Int}
Defined in: adventure/asset/IOVdidDoCount.js, line 6
Inherited from: adventurejs.Asset#IOVdidDoCount
Parameters:
-
verb
String
_iDoCount is an alias meant for authors.
Returns:
Int
IOVdidTry(verb) → {Boolean}
Defined in: adventure/asset/IOVdidTry.js, line 6
Inherited from: adventurejs.Asset#IOVdidTry
Parameters:
-
verb
String
_iDidTry is an alias meant for authors.
Returns:
Boolean
IOVdidTryCount(verb) → {Boolean}
Defined in: adventure/asset/IOVdidTryCount.js, line 6
Inherited from: adventurejs.Asset#IOVdidTryCount
Parameters:
-
verb
String
_iTryCount is an alias meant for authors.
Returns:
Boolean
IOVgetConnectionCount(verb) → {Int}
Defined in: adventure/asset/IOVgetConnectionCount.js, line 6
Inherited from: adventurejs.Asset#IOVgetConnectionCount
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
IOVgetConnections(verb) → {Array}
Defined in: adventure/asset/IOVgetConnections.js, line 6
Inherited from: adventurejs.Asset#IOVgetConnections
Parameters:
-
verb
String
The name of a verb.
Returns:
Array
IOVgetMaxConnections(verb) → {Int}
Defined in: adventure/asset/IOVgetMaxConnections.js, line 6
Inherited from: adventurejs.Asset#IOVgetMaxConnections
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
IOVhasDirectObjects(verb) → {Boolean}
Defined in: adventure/asset/IOVhasDirectObjects.js, line 6
Inherited from: adventurejs.Asset#IOVhasDirectObjects
Parameters:
-
verb
String
Returns:
Boolean
IOVhasMaxConnections(verb) → {Boolean}
Defined in: adventure/asset/IOVhasMaxConnections.js, line 6
Inherited from: adventurejs.Asset#IOVhasMaxConnections
Parameters:
-
verb
String
The name of a verb.
Returns:
Boolean
IOVincrementDoCount(verb)
Defined in: adventure/asset/IOVincrementDoCount.js, line 6
Inherited from: adventurejs.Asset#IOVincrementDoCount
Parameters:
-
verb
String
IOVincrementTryCount(verb)
Defined in: adventure/asset/IOVincrementTryCount.js, line 6
Inherited from: adventurejs.Asset#IOVincrementTryCount
Parameters:
-
verb
String
IOVisConnectedToAnything(verb) → {Boolean}
Defined in: adventure/asset/IOVisConnectedToAnything.js, line 6
Inherited from: adventurejs.Asset#IOVisConnectedToAnything
Parameters:
-
verb
String
The name of a verb.
plugIn
or tie
. For example, if this asset
is an outlet with a computer plugged into it, this method would return true.
Returns:
Boolean
IOVisConnectedToAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/IOVisConnectedToAsset.js, line 6
Inherited from: adventurejs.Asset#IOVisConnectedToAsset
Parameters:
-
verb
String
The name of the verb to test. -
asset
Object | String
A game asset or asset id to test.
Returns:
Boolean
IOVisConnectedToNothing(verb) → {Boolean}
Defined in: adventure/asset/IOVisConnectedToNothing.js, line 6
Inherited from: adventurejs.Asset#IOVisConnectedToNothing
Parameters:
-
verb
String
The name of a verb.
Returns:
Boolean
IOVsetConnection(verb, asset)
Defined in: adventure/asset/IOVsetConnection.js, line 6
Inherited from: adventurejs.Asset#IOVsetConnection
Parameters:
-
verb
String -
asset
Object
IOVsetWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/IOVsetWithAsset.js, line 6
Inherited from: adventurejs.Asset#IOVsetWithAsset
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
IOVsetWithClass(verb, clas) → {Boolean}
Defined in: adventure/asset/IOVsetWithClass.js, line 6
Inherited from: adventurejs.Asset#IOVsetWithClass
Parameters:
-
verb
String -
clas
String
Returns:
Boolean
IOVunsetConnection(verb, asset)
Defined in: adventure/asset/IOVunsetConnection.js, line 6
Inherited from: adventurejs.Asset#IOVunsetConnection
Parameters:
-
verb
String -
asset
Object
isDOV(verb) → {Boolean}
Defined in: adventure/asset/isDOV.js, line 6
Inherited from: adventurejs.Asset#isDOV
Parameters:
-
verb
String
Returns:
Boolean
isIn(asset)
Defined in: adventure/assets/tangible/$isIn.js, line 7
Inherited from: adventurejs.Tangible#isIn
Parameters:
-
asset
Object | String
Can be string or object.
if( MyGame.$('jewel').$isIn('crown') ){ // do stuff }
isIOV(verb) → {Boolean}
Defined in: adventure/asset/isIOV.js, line 6
Inherited from: adventurejs.Asset#isIOV
Parameters:
-
verb
String
Returns:
Boolean
isPlacedAtAspect() → {Boolean}
Defined in: adventure/assets/tangible/isPlacedAtAspect.js, line 6
Inherited from: adventurejs.Tangible#isPlacedAtAspect
Returns:
Boolean
isPlacedAtAspectAndAsset(aspect, asset) → {Boolean}
Defined in: adventure/assets/tangible/isPlacedAtAspectAndAsset.js, line 6
Inherited from: adventurejs.Tangible#isPlacedAtAspectAndAsset
Parameters:
-
aspect
String -
asset
String
Returns:
Boolean
isState(verb) → {Boolean}
Defined in: adventure/asset/isState.js, line 6
Inherited from: adventurejs.Asset#isState
Parameters:
-
verb
String
Returns:
Boolean
isWithinYRange(asset) → {Boolean}
Defined in: adventure/assets/tangible/isWithinYRange.js, line 6
Inherited from: adventurejs.Tangible#isWithinYRange
Parameters:
-
asset
Object
Returns:
Boolean
linkRegisteredParts()
Defined in: adventure/assets/tangible/linkRegisteredParts.js, line 6
Inherited from: adventurejs.Tangible#linkRegisteredParts
moveFrom(asset) → {Boolean}
Defined in: adventure/assets/tangible/$moveFrom.js, line 6
Inherited from: adventurejs.Tangible#moveFrom
Parameters:
-
asset
Object
Returns:
Boolean
moveTo(aspect, asset)
Defined in: adventure/assets/tangible/moveTo.js, line 6
Inherited from: adventurejs.Tangible#moveTo
Parameters:
-
aspect
String -
asset
Object
onAddSubstanceToThis(asset)
Defined in: adventure/assets/tangible/onAddSubstanceToThis.js, line 6
Inherited from: adventurejs.Tangible#onAddSubstanceToThis
Parameters:
-
asset
Object
onChangeGravity()
Defined in: adventure/assets/tangible/onChangeGravity.js, line 6
Inherited from: adventurejs.Tangible#onChangeGravity
onChangeMoisture(asset)
Defined in: adventure/assets/tangible/onChangeMoisture.js, line 6
Inherited from: adventurejs.Tangible#onChangeMoisture
Todos: This should probably take a moisture value rather than an asset.
Parameters:
-
asset
Object
onChangeTemperature()
Defined in: adventure/assets/tangible/onChangeTemperature.js, line 6
Inherited from: adventurejs.Tangible#onChangeTemperature
onMoveThatToThis(asset, where) → {Boolean}
Defined in: adventure/assets/tangible/onMoveThatToThis.js, line 6
Inherited from: adventurejs.Tangible#onMoveThatToThis
Parameters:
-
asset
Object -
where
String
Returns:
Boolean
onNestThatToThis(player) → {Boolean}
Defined in: adventure/assets/tangible/onNestThatToThis.js, line 6
Inherited from: adventurejs.Tangible#onNestThatToThis
Parameters:
-
player
Object
Returns:
Boolean
onRemoveThatFromThis(asset) → {Boolean}
Defined in: adventure/assets/tangible/onRemoveThatFromThis.js, line 6
Inherited from: adventurejs.Tangible#onRemoveThatFromThis
Parameters:
-
asset
Object
Returns:
Boolean
onSubtractSubstanceFromThis(asset)
Defined in: adventure/assets/tangible/onSubtractSubstanceFromThis.js, line 6
Inherited from: adventurejs.Tangible#onSubtractSubstanceFromThis
Parameters:
-
asset
Object
onTieThisToThat(asset) → {Boolean}
Defined in: adventure/assets/tangible/onTieThisToThat.js, line 6
Inherited from: adventurejs.Tangible#onTieThisToThat
Parameters:
-
asset
Object
Returns:
Boolean
onUnnestThatFromThis(player) → {Boolean}
Defined in: adventure/assets/tangible/onUnnestThatFromThis.js, line 6
Inherited from: adventurejs.Tangible#onUnnestThatFromThis
Parameters:
-
player
Object
Returns:
Boolean
onUntieThisFromThat(asset) → {Boolean}
Defined in: adventure/assets/tangible/onUntieThisFromThat.js, line 6
Inherited from: adventurejs.Tangible#onUntieThisFromThat
Parameters:
-
asset
Object
Returns:
Boolean
put(preposition, indirect_object)
Defined in: adventure/assets/tangible/$put.js, line 9
Inherited from: adventurejs.Tangible#put
Parameters:
-
preposition
String -
indirect_object
Object | String
asset object or name/id
redirectVerb(oldVerb, newVerb)
Defined in: adventure/asset/redirectVerb.js, line 7
Inherited from: adventurejs.Asset#redirectVerb
Parameters:
-
oldVerb
String -
newVerb
String
registerParts()
Defined in: adventure/assets/tangible/registerParts.js, line 6
Inherited from: adventurejs.Tangible#registerParts
removeAssetAt() → {Array}
Defined in: adventure/assets/tangible/removeAssetAt.js, line 6
Inherited from: adventurejs.Tangible#removeAssetAt
Returns:
Array
removeThatFromThis(asset)
Defined in: adventure/assets/tangible/removeThatFromThis.js, line 6
Inherited from: adventurejs.Tangible#removeThatFromThis
Parameters:
-
asset
Object
set(props) → {Object}
Defined in: adventure/Atom.js, line 119
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 6
Inherited from: adventurejs.Tangible#setAllAspectsContentsKnown
setAllAspectsContentsSeen()
Defined in: adventure/assets/tangible/setAllAspectsContentsSeen.js, line 6
Inherited from: adventurejs.Tangible#setAllAspectsContentsSeen
setAspectAt(aspect) → {Array}
Defined in: adventure/assets/tangible/setAspectAt.js, line 6
Inherited from: adventurejs.Tangible#setAspectAt
Parameters:
-
aspect
string
The aspect to add.
Returns:
Array
setAspectContentsKnown()
Defined in: adventure/assets/tangible/setAspectContentsKnown.js, line 6
Inherited from: adventurejs.Tangible#setAspectContentsKnown
setAspectContentsSeen()
Defined in: adventure/assets/tangible/setAspectContentsSeen.js, line 6
Inherited from: adventurejs.Tangible#setAspectContentsSeen
setAttachmentsKnown()
Defined in: adventure/assets/tangible/setAttachmentsKnown.js, line 6
Inherited from: adventurejs.Tangible#setAttachmentsKnown
setClosed(bool)
Defined in: adventure/assets/tangible/setClosed.js, line 7
Inherited from: adventurejs.Tangible#setClosed
Parameters:
-
bool
Boolean
setDOV(verb, params)
Defined in: adventure/asset/setDOV.js, line 7
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 7
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 7
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 7
Inherited from: adventurejs.Asset#setIOVs
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with indirect object specified.
setKnown(bool)
Defined in: adventure/assets/tangible/setKnown.js, line 7
Inherited from: adventurejs.Tangible#setKnown
Parameters:
-
bool
Boolean
setLinkedState(bool)
Defined in: adventure/asset/setLinkedState.js, line 7
Inherited from: adventurejs.Asset#setLinkedState
Parameters:
-
bool
Boolean
setLocked(bool)
Defined in: adventure/assets/tangible/setLocked.js, line 7
Inherited from: adventurejs.Tangible#setLocked
Parameters:
-
bool
Boolean
setObjectOfVerbs(object_of, verb)
Defined in: adventure/asset/setObjectOfVerbs.js, line 7
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 6
Inherited from: adventurejs.Tangible#setPlace
Parameters:
-
aspect
String -
asset_id
String
Returns:
Object
setPosition(params) → {Object}
Defined in: adventure/assets/tangible/setPosition.js, line 6
Inherited from: adventurejs.Tangible#setPosition
Parameters:
-
params
Object
Returns:
Object
setSealed(bool)
Defined in: adventure/assets/tangible/setSealed.js, line 7
Inherited from: adventurejs.Tangible#setSealed
Parameters:
-
bool
Boolean
setSeen(bool)
Defined in: adventure/assets/tangible/setSeen.js, line 7
Inherited from: adventurejs.Tangible#setSeen
Parameters:
-
bool
Boolean
setState(verb, bool)
Defined in: adventure/asset/setState.js, line 6
Inherited from: adventurejs.Asset#setState
Parameters:
-
verb
String -
bool
Boolean
setUsed(bool)
Defined in: adventure/assets/tangible/setUsed.js, line 7
Inherited from: adventurejs.Tangible#setUsed
Parameters:
-
bool
Boolean
setVerbSubscription(object_of, verb, params)
Defined in: adventure/asset/setVerbSubscription.js, line 6
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 6
Inherited from: adventurejs.Asset#setVerbSubscriptionsWithAssets
Parameters:
-
description
String
Returns:
String
setVerbSubscriptionsWithConnection()
Defined in: adventure/asset/setVerbSubscriptionsWithConnection.js, line 6
Inherited from: adventurejs.Asset#setVerbSubscriptionsWithConnection
dov[verb]
and some verbs make connections between assets
that they act upon, which are recorded in
dov[verb].with_params.connections
.
Authors can preset connections in their game file, and
in case they only set one of two connected assets, we want
to ensure that both assets are marked as connected,
so we check that here.
setVesselAt(aspect) → {Array}
Defined in: adventure/assets/tangible/setVesselAt.js, line 6
Inherited from: adventurejs.Tangible#setVesselAt
Parameters:
-
aspect
string
The aspect to add.
Returns:
Array
setX(value) → {Float}
Defined in: adventure/assets/tangible/setX.js, line 6
Inherited from: adventurejs.Tangible#setX
Parameters:
-
value
Float
Returns:
Float
setY(value) → {Float}
Defined in: adventure/assets/tangible/setY.js, line 6
Inherited from: adventurejs.Tangible#setY
Parameters:
-
value
Float
Returns:
Float
setZ(value) → {Float}
Defined in: adventure/assets/tangible/setZ.js, line 6
Inherited from: adventurejs.Tangible#setZ
Parameters:
-
value
Float
Returns:
Float
toggleState(verb) → {Boolean}
Defined in: adventure/asset/toggleState.js, line 6
Inherited from: adventurejs.Asset#toggleState
Parameters:
-
verb
String
Returns:
Boolean
undestroy()
Defined in: adventure/asset/undestroy.js, line 7
Inherited from: adventurejs.Asset#undestroy
unfasten() → {string}
Defined in: adventure/assets/tangible/unfasten.js, line 7
Inherited from: adventurejs.Tangible#unfasten
Returns:
string
unredirectVerb(oldVerb)
Defined in: adventure/asset/unredirectVerb.js, line 7
Inherited from: adventurejs.Asset#unredirectVerb
Parameters:
-
oldVerb
String
unsetDOV(verb)
Defined in: adventure/asset/unsetDOV.js, line 7
Inherited from: adventurejs.Asset#unsetDOV
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetDOVs(verbs)
Defined in: adventure/asset/unsetDOVs.js, line 7
Inherited from: adventurejs.Asset#unsetDOVs
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetIOV(verb)
Defined in: adventure/asset/unsetIOV.js, line 7
Inherited from: adventurejs.Asset#unsetIOV
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetIOVs(verbs)
Defined in: adventure/asset/unsetIOVs.js, line 7
Inherited from: adventurejs.Asset#unsetIOVs
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetVerbSubscription(object_of, verb)
Defined in: adventure/asset/unsetVerbSubscription.js, line 6
Inherited from: adventurejs.Asset#unsetVerbSubscription
Parameters:
-
object_of
String -
verb
String
validate(game) → {Boolean}
Defined in: adventure/assets/Tangible.js, line 1089
Inherited from: adventurejs.Tangible#validate
Parameters:
-
game
Object
- check for implied dependencies and make them explicit
- check for proper asset location
- set parent associations
Returns:
Boolean
Properties |
absorption_quantity :Boolean
Defined in: adventure/assets/Tangible.js, line 325
Inherited from: adventurejs.Tangible#absorption_quantity
Default value: 0
adjectives :Getter/Setter
Defined in: adventure/Asset.js, line 295
Inherited from: adventurejs.Asset#adjectives
aperture :String
Defined in: adventure/assets/tangibles/Exit.js, line 298
Inherited from: adventurejs.Tangible#aperture
Default value: ""
append_written_strings_to_description :Boolean
Defined in: adventure/assets/Tangible.js, line 515
Inherited from: adventurejs.Tangible#append_written_strings_to_description
Default value: false
article_name :Getter
Defined in: adventure/Asset.js, line 388
Inherited from: adventurejs.Asset#article_name
articlename :Getter
Defined in: adventure/Asset.js, line 402
Inherited from: adventurejs.Asset#articlename
Articlename :Getter
Defined in: adventure/Asset.js, line 422
Inherited from: adventurejs.Asset#Articlename
aspects :Object
Defined in: adventure/assets/Tangible.js, line 81
Inherited from: adventurejs.Tangible#aspects
Default value: {}
buoyancy :float
Defined in: adventure/assets/Tangible.js, line 317
Inherited from: adventurejs.Tangible#buoyancy
Default value: 0
Todos: Implement.
can :Object
Defined in: adventure/Asset.js, line 51
Inherited from: adventurejs.Asset#can
can.auto_open :Boolean
Defined in: adventure/assets/Tangible.js, line 333
Inherited from: adventurejs.Tangible#can.auto_open
Default value: false
Nested property of Can
can.auto_unlock :Boolean
Defined in: adventure/assets/Tangible.js, line 342
Inherited from: adventurejs.Tangible#can.auto_unlock
Default value: false
Nested property of Can
can.auto_unseal :Boolean
Defined in: adventure/assets/Tangible.js, line 351
Inherited from: adventurejs.Tangible#can.auto_unseal
Default value: false
Nested property of Can
can.be_swung_at :Boolean
Defined in: adventure/assets/Tangible.js, line 490
Inherited from: adventurejs.Tangible#can.be_swung_at
Default value: true
Nested property of Can
collection :Getter/Setter
Defined in: adventure/Asset.js, line 169
Inherited from: adventurejs.Asset#collection
control_positions :int
Defined in: adventure/assets/Tangible.js, line 472
Inherited from: adventurejs.Tangible#control_positions
Default value: 1
control_target_id :String
Defined in: adventure/assets/Tangible.js, line 465
Inherited from: adventurejs.Tangible#control_target_id
Default value: ""
current_position :int
Defined in: adventure/assets/Tangible.js, line 480
Inherited from: adventurejs.Tangible#current_position
Default value: 0
default_aspect :String
Defined in: adventure/assets/Tangible.js, line 109
Inherited from: adventurejs.Tangible#default_aspect
Default value: "on"
default_aspect_for_climb :String
Defined in: adventure/assets/Tangible.js, line 126
Inherited from: adventurejs.Tangible#default_aspect_for_climb
Default value: "on"
Todos: Move string to const
default_aspect_for_swing_to :Boolean
Defined in: adventure/assets/Tangible.js, line 270
Inherited from: adventurejs.Tangible#default_aspect_for_swing_to
Default value: false
default_posture_for_swing_to :Boolean
Defined in: adventure/assets/Tangible.js, line 262
Inherited from: adventurejs.Tangible#default_posture_for_swing_to
Default value: false
definite_article :String
Defined in: adventure/Asset.js, line 200
Inherited from: adventurejs.Asset#definite_article
Default value: 'the'
definite_name :Getter
Defined in: adventure/Asset.js, line 360
Inherited from: adventurejs.Asset#definite_name
description :*
Defined in: adventure/Asset.js, line 441
Inherited from: adventurejs.Asset#description
descriptions :Object
Defined in: adventure/Asset.js, line 145
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_do_verb :Object
Defined in: adventure/Asset.js, line 305
Inherited from: adventurejs.Asset#did_do_verb
did_do_verb_count :Object
Defined in: adventure/Asset.js, line 314
Inherited from: adventurejs.Asset#did_do_verb_count
did_try_verb :Object
Defined in: adventure/Asset.js, line 324
Inherited from: adventurejs.Asset#did_try_verb
did_try_verb_count :Object
Defined in: adventure/Asset.js, line 333
Inherited from: adventurejs.Asset#did_try_verb_count
dimensions :Object
Defined in: adventure/assets/Tangible.js, line 633
Inherited from: adventurejs.Tangible#dimensions
Default value: {}
direction :String
Defined in: adventure/assets/tangibles/things/Aperture.js, line 81
Inherited from: adventurejs.Tangible#direction
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 227
Inherited from: adventurejs.Asset#dont_use_articles
Default value: false
dov :Boolean
Defined in: adventure/Asset.js, line 73
Inherited from: adventurejs.Asset#dov
Default value: {}
emits :Boolean
Defined in: adventure/assets/Tangible.js, line 581
Inherited from: adventurejs.Tangible#emits
Default value: false
Todos: Write logic for this.
exclude_from_lookup :Boolean
Defined in: adventure/Asset.js, line 119
Inherited from: adventurejs.Asset#exclude_from_lookup
Default value: false
exit :String
Defined in: adventure/assets/tangibles/things/Aperture.js, line 90
Inherited from: adventurejs.Tangible#exit
Default value: ""
game :Getter
Defined in: adventure/Atom.js, line 110
Inherited from: adventurejs.Atom#game
this.game
.
image :String
Defined in: adventure/Asset.js, line 343
Inherited from: adventurejs.Asset#image
indefinite_article :String
Defined in: adventure/Asset.js, line 208
Inherited from: adventurejs.Asset#indefinite_article
Default value: 'a'
indefinite_name :Getter
Defined in: adventure/Asset.js, line 374
Inherited from: adventurejs.Asset#indefinite_name
iov :Boolean
Defined in: adventure/Asset.js, line 83
Inherited from: adventurejs.Asset#iov
Default value: {}
is :Object
Defined in: adventure/Asset.js, line 38
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/Asset_Is.js, line 91
Inherited from: adventurejs.Asset#is.abstract
Default value: false
Nested property of Is
is.buttoned :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 136
Inherited from: adventurejs.Tangible#is.buttoned
Default value: false
Nested property of Is
is.climbable :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 181
Inherited from: adventurejs.Tangible#is.climbable
Default value: false
Nested property of Is
is.closed :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 158
Inherited from: adventurejs.Tangible#is.closed
Default value: false
Nested property of Is
is.collection :Boolean
Defined in: adventure/asset/Asset_Is.js, line 51
Inherited from: adventurejs.Asset#is.collection
Default value: true
Nested property of Is
is.deep_nest :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 210
Inherited from: adventurejs.Tangible#is.deep_nest
Default value: false
Nested property of Is
is.destroyed :Boolean
Defined in: adventure/asset/Asset_Is.js, line 36
Inherited from: adventurejs.Asset#is.destroyed
Default value: false
Nested property of Is
is.distant :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 98
Inherited from: adventurejs.Tangible#is.distant
Default value: false
Nested property of Is
is.extant :Boolean
Defined in: adventure/asset/Asset_Is.js, line 44
Inherited from: adventurejs.Asset#is.extant
Default value: true
Nested property of Is
is.false_nest :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 219
Inherited from: adventurejs.Tangible#is.false_nest
Default value: false
Nested property of Is
is.fixed :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 143
Inherited from: adventurejs.Tangible#is.fixed
Default value: false
Nested property of Is
is.global :Boolean
Defined in: adventure/asset/Asset_Is.js, line 82
Inherited from: adventurejs.Asset#is.global
Default value: false
Nested property of Is
is.hollow :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 68
Inherited from: adventurejs.Tangible#is.hollow
Default value: false
Nested property of Is
is.initialized :Boolean
Defined in: adventure/asset/Asset_Is.js, line 65
Inherited from: adventurejs.Asset#is.initialized
Default value: false
Nested property of Is
is.known :Boolean
Defined in: adventure/asset/Asset_Is.js, line 27
Inherited from: adventurejs.Asset#is.known
Default value: false
Nested property of Is
Todos: In games with multiple characters, any character the player takes will share this knowledge. May want an option to set this per player character.
is.listed_in_parent :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 91
Inherited from: adventurejs.Tangible#is.listed_in_parent
Default value: true
Nested property of Is
is.listed_in_room :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 75
Inherited from: adventurejs.Tangible#is.listed_in_room
Default value: true
Nested property of Is
is.locked :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 151
Inherited from: adventurejs.Tangible#is.locked
Default value: false
Nested property of Is
is.lookthroughable :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 202
Inherited from: adventurejs.Tangible#is.lookthroughable
Default value: false
Nested property of Is
is.nameless :Boolean
Defined in: adventure/asset/Asset_Is.js, line 72
Inherited from: adventurejs.Asset#is.nameless
Default value: false
Nested property of Is
is.peddleable :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 188
Inherited from: adventurejs.Tangible#is.peddleable
Default value: false
Nested property of Is
is.plugged :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 29
Inherited from: adventurejs.Asset#is.plugged
Default value: false
Nested property of Is
is.pluggedIn :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 36
Inherited from: adventurejs.Asset#is.pluggedIn
Default value: false
Nested property of Is
is.rideable :Boolean
Defined in: adventure/assets/tangibles/things/Rideable.js, line 49
Inherited from: adventurejs.Tangible#is.rideable
Default value: false
Nested property of Is
Normally, when putting one Tangible in/on/under/behind another, the child asset is added to the parent asset's in/on/under/behind Aspect.
In the case of Characters, they can only be in the Room they are in. When Characters move in/on/under/behind Tangible subclasses such as Chairs or Beds, they become nested, which is a secondary form of parent/child relationship.
For example, the player is IN a room. A bed is also IN the same room. When the player gets ON the bed, the player remains IN the room and also becomes NESTED ON the bed.
We do this for a couple of reasons. One is to prevent overcomplicating the routines that determine what Tangible Assets are considered to be within scope when parsing player input. Another is to avoid circular child/parent relationships, which overcomplicate save/restore operations. Circular relationships also overcomplicate parsing player input.
For example, imagine that a player holds a skateboard IN their inventory and then stands ON the skateboard. If both objects were in each other's Aspects, that would be a circular relationship. By nesting the player to the skateboard, the skateboard can remain in the player's inventory with fewer complications.
is.screwed :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 122
Inherited from: adventurejs.Tangible#is.screwed
Default value: false
Nested property of Is
is.sealed :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 165
Inherited from: adventurejs.Tangible#is.sealed
Default value: false
Nested property of Is
is.singleton :Boolean
Defined in: adventure/asset/Asset_Is.js, line 98
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.skateable :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 195
Inherited from: adventurejs.Tangible#is.skateable
Default value: false
Nested property of Is
is.supported :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 58
Inherited from: adventurejs.Tangible#is.supported
Default value: false
Nested property of Is
is.typing_target :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 51
Inherited from: adventurejs.Tangible#is.typing_target
Default value: false
Nested property of Is
is.unleavable :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 172
Inherited from: adventurejs.Tangible#is.unleavable
Default value: false
Nested property of Is
is.unlisted_but_list_children :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 82
Inherited from: adventurejs.Tangible#is.unlisted_but_list_children
Default value: false
Nested property of Is
is.validated :Boolean
Defined in: adventure/asset/Asset_Is.js, line 58
Inherited from: adventurejs.Asset#is.validated
Default value: false
Nested property of Is
is.watertight :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 106
Inherited from: adventurejs.Tangible#is.watertight
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 115
Inherited from: adventurejs.Tangible#is.worn
Default value: false
Nested property of Is
is.zipped :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 129
Inherited from: adventurejs.Tangible#is.zipped
Default value: false
Nested property of Is
list_group :int
Defined in: adventure/assets/Tangible.js, line 716
Inherited from: adventurejs.Tangible#list_group
Default value: 0
Todos: Implement this or remove it.
location_required :Boolean
Defined in: adventure/assets/Tangible.js, line 607
Inherited from: adventurejs.Tangible#location_required
Default value: false
location_unneccessary :Boolean
Defined in: adventure/assets/Tangible.js, line 616
Inherited from: adventurejs.Tangible#location_unneccessary
Default value: false
min_light_required_to_see :float
Defined in: adventure/assets/Tangible.js, line 624
Inherited from: adventurejs.Tangible#min_light_required_to_see
Default value: 0.5
Todos: Write logic for this in selectVisible.js
must :Object
Defined in: adventure/Asset.js, line 60
Inherited from: adventurejs.Asset#must
must.be_in_hands_to_look_through :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 34
Inherited from: adventurejs.Tangible#must.be_in_hands_to_look_through
Default value: false
Nested property of Must
must.be_in_hands_to_look_with :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 27
Inherited from: adventurejs.Tangible#must.be_in_hands_to_look_with
Default value: false
Nested property of Must
must.be_in_hands_to_read :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 48
Inherited from: adventurejs.Tangible#must.be_in_hands_to_read
Default value: false
Nested property of Must
must.be_worn_to_look_with :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 41
Inherited from: adventurejs.Tangible#must.be_worn_to_look_with
Default value: false
Nested property of Must
must.let_go_after_swing :Boolean
Defined in: adventure/assets/Tangible_Must.js, line 55
Inherited from: adventurejs.Tangible#must.let_go_after_swing
Default value: false
Nested property of Must
Name :String
Defined in: adventure/Atom.js, line 97
Inherited from: adventurejs.Atom#Name
name_is_proper :Boolean
Defined in: adventure/Asset.js, line 184
Inherited from: adventurejs.Asset#name_is_proper
Default value: false
noun :String
Defined in: adventure/Asset.js, line 237
Inherited from: adventurejs.Asset#noun
on_drink_destroy :Boolean
Defined in: adventure/assets/Tangible.js, line 409
Inherited from: adventurejs.Tangible#on_drink_destroy
Default value: false
on_drink_empty :Boolean
Defined in: adventure/assets/Tangible.js, line 416
Inherited from: adventurejs.Tangible#on_drink_empty
Default value: false
on_eat_destroy :Boolean
Defined in: adventure/assets/Tangible.js, line 424
Inherited from: adventurejs.Tangible#on_eat_destroy
Default value: false
on_tie_to_drag_behind_rope :Boolean
Defined in: adventure/assets/Tangible.js, line 540
Inherited from: adventurejs.Tangible#on_tie_to_drag_behind_rope
Default value: false
on_tie_to_this_take_this :Boolean
Defined in: adventure/assets/Tangible.js, line 531
Inherited from: adventurejs.Tangible#on_tie_to_this_take_this
Default value: false
opacity :float
Defined in: adventure/assets/Tangible.js, line 649
Inherited from: adventurejs.Tangible#opacity
Default value: 1
parts :Array
Defined in: adventure/assets/Tangible.js, line 812
Inherited from: adventurejs.Tangible#parts
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 940
Inherited from: adventurejs.Tangible#place
player_can_exit :Boolean
Defined in: adventure/assets/Tangible.js, line 168
Inherited from: adventurejs.Tangible#player_can_exit
Default value: false
player_can_hang_on_this :Boolean
Defined in: adventure/assets/Tangible.js, line 285
Inherited from: adventurejs.Tangible#player_can_hang_on_this
Default value: false
plural :String
Defined in: adventure/Asset.js, line 266
Inherited from: adventurejs.Asset#plural
position :Object
Defined in: adventure/assets/Tangible.js, line 683
Inherited from: adventurejs.Tangible#position
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.
posture_position :Boolean
Defined in: adventure/assets/Tangible.js, line 292
Inherited from: adventurejs.Tangible#posture_position
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 105
Inherited from: adventurejs.Asset#print_bold
Default value: false
print_italic :Boolean
Defined in: adventure/Asset.js, line 112
Inherited from: adventurejs.Asset#print_italic
Default value: false
print_open_or_closed :Boolean
Defined in: adventure/assets/Tangible.js, line 928
Inherited from: adventurejs.Tangible#print_open_or_closed
Default value: false
pronoun :String
Defined in: adventure/Asset.js, line 246
Inherited from: adventurejs.Asset#pronoun
propername :String
Defined in: adventure/Asset.js, line 191
Inherited from: adventurejs.Asset#propername
quirks :Object
Defined in: adventure/Asset.js, line 94
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 134
Inherited from: adventurejs.Tangible#quirks.climb_means_go_on
Default value: false
Nested property of Quirks
quirks.climb_means_stand_on :Boolean
Defined in: adventure/assets/Tangible.js, line 143
Inherited from: adventurejs.Tangible#quirks.climb_means_stand_on
Default value: false
Nested property of Quirks
quirks.crawl_means_go :Boolean
Defined in: adventure/assets/Tangible.js, line 159
Inherited from: adventurejs.Tangible#quirks.crawl_means_go
Default value: false
Nested property of Quirks
quirks.get_up_means_get_off :Boolean
Defined in: adventure/assets/Tangible.js, line 184
Inherited from: adventurejs.Tangible#quirks.get_up_means_get_off
Default value: false
Nested property of Quirks
quirks.go_on_means_climb :Boolean
Defined in: adventure/assets/Tangible.js, line 193
Inherited from: adventurejs.Tangible#quirks.go_on_means_climb
Default value: false
Nested property of Quirks
quirks.in_means_on :Boolean
Defined in: adventure/assets/Tangible.js, line 202
Inherited from: adventurejs.Tangible#quirks.in_means_on
Default value: false
Nested property of Quirks
quirks.jump_means_jump_off :Boolean
Defined in: adventure/assets/Tangible.js, line 230
Inherited from: adventurejs.Tangible#quirks.jump_means_jump_off
Default value: false
Nested property of Quirks
quirks.jump_means_jump_on :Boolean
Defined in: adventure/assets/Tangible.js, line 222
Inherited from: adventurejs.Tangible#quirks.jump_means_jump_on
Default value: true
Nested property of Quirks
quirks.let_go_of_means_go_down :Boolean
Defined in: adventure/assets/Tangible.js, line 572
Inherited from: adventurejs.Tangible#quirks.let_go_of_means_go_down
Default value: false
Nested property of Quirks
quirks.let_go_of_means_go_off :Boolean
Defined in: adventure/assets/Tangible.js, line 563
Inherited from: adventurejs.Tangible#quirks.let_go_of_means_go_off
Default value: false
Nested property of Quirks
quirks.look_with_means_look_through :Boolean
Defined in: adventure/assets/Tangible.js, line 431
Inherited from: adventurejs.Tangible#quirks.look_with_means_look_through
Default value: false
Nested property of Quirks
quirks.pick_means_unlock :Boolean
Defined in: adventure/assets/Tangible.js, line 360
Inherited from: adventurejs.Tangible#quirks.pick_means_unlock
Default value: false
Nested property of Quirks
quirks.point_means_aim :Boolean
Defined in: adventure/assets/Tangible.js, line 726
Inherited from: adventurejs.Tangible#quirks.point_means_aim
Default value: false
Nested property of Quirks
quirks.put_means_pour :Boolean
Defined in: adventure/assets/Tangible.js, line 212
Inherited from: adventurejs.Tangible#quirks.put_means_pour
Default value: false
Nested property of Quirks
quirks.stand_means_get_off :Boolean
Defined in: adventure/assets/Tangible.js, line 175
Inherited from: adventurejs.Tangible#quirks.stand_means_get_off
Default value: false
Nested property of Quirks
quirks.step_on_means_stamp_on :Boolean
Defined in: adventure/assets/Tangible.js, line 245
Inherited from: adventurejs.Tangible#quirks.step_on_means_stamp_on
Default value: false
Nested property of Quirks
quirks.step_on_means_stand_on :Boolean
Defined in: adventure/assets/Tangible.js, line 253
Inherited from: adventurejs.Tangible#quirks.step_on_means_stand_on
Default value: false
Nested property of Quirks
quirks.take_means_hold :Boolean
Defined in: adventure/assets/Tangible.js, line 555
Inherited from: adventurejs.Tangible#quirks.take_means_hold
Default value: false
Nested property of Quirks
quirks.write_on_means_write_in :Boolean
Defined in: adventure/assets/Tangible.js, line 499
Inherited from: adventurejs.Tangible#quirks.write_on_means_write_in
Default value: false
Nested property of Quirks
redirected_verbs :Boolean
Defined in: adventure/Asset.js, line 351
Inherited from: adventurejs.Tangible#redirected_verbs
Default value: {}
registerableClasses :Object
Defined in: adventure/assets/Tangible.js, line 863
Inherited from: adventurejs.Tangible#registerableClasses
Default value: {}
registered_parts :Object
Defined in: adventure/assets/Tangible.js, line 855
Inherited from: adventurejs.Tangible#registered_parts
Default value: {}
show_things_this_is_tied_to_in_description :Boolean
Defined in: adventure/assets/Tangible.js, line 548
Inherited from: adventurejs.Tangible#show_things_this_is_tied_to_in_description
Default value: true
singlePluralPairs :Array
Defined in: adventure/Asset.js, line 254
Inherited from: adventurejs.Asset#singlePluralPairs
split_name_for_world_lookup :Boolean
Defined in: adventure/Asset.js, line 128
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 152
Inherited from: adventurejs.Tangible#things_player_can_climb_to_from_this
Default value: []
things_player_can_do_all_verbs_to_from_this :Array
Defined in: adventure/assets/Tangible.js, line 117
Inherited from: adventurejs.Tangible#things_player_can_do_all_verbs_to_from_this
Default value: []
Todos: Revisit this. Use things_within_reach for all reach settings?
things_player_can_jump_to_from_this :Array
Defined in: adventure/assets/Tangible.js, line 238
Inherited from: adventurejs.Tangible#things_player_can_jump_to_from_this
Default value: []
things_player_can_reach_from_this :Array
Defined in: adventure/assets/Tangible.js, line 736
Inherited from: adventurejs.Tangible#things_player_can_reach_from_this
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 765
Inherited from: adventurejs.Tangible#things_player_can_reach_from_top_of_this
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_swing_to_across_this :Getter/Setter
Defined in: adventure/assets/Tangible.js, line 909
Inherited from: adventurejs.Tangible#things_player_can_swing_to_across_this
Default value: false
things_player_can_swing_to_from_this :Array
Defined in: adventure/assets/Tangible.js, line 278
Inherited from: adventurejs.Tangible#things_player_can_swing_to_from_this
Default value: []
turn_positions :int
Defined in: adventure/assets/Tangible.js, line 443
Inherited from: adventurejs.Tangible#turn_positions
Default value: 1
turn_rotation :float
Defined in: adventure/assets/Tangible.js, line 451
Inherited from: adventurejs.Tangible#turn_rotation
Default value: 0
turn_target_id :String
Defined in: adventure/assets/Tangible.js, line 459
Inherited from: adventurejs.Tangible#turn_target_id
Default value: ""
typing_target_id :String
Defined in: adventure/assets/Tangible.js, line 522
Inherited from: adventurejs.Tangible#typing_target_id
Default value: ""
use_definite_article_in_lists :Boolean
Defined in: adventure/Asset.js, line 216
Inherited from: adventurejs.Asset#use_definite_article_in_lists
Default value: false
use_once_message :Boolean
Defined in: adventure/assets/Tangible.js, line 369
Inherited from: adventurejs.Tangible#use_once_message
Default value: false
written_strings :Array
Defined in: adventure/assets/Tangible.js, line 508
Inherited from: adventurejs.Tangible#written_strings
Default value: []