Class: Asset
Extends: adventurejs.Atom
Defined in: adventure/Asset.js, line 5
More info: _Overview
Public Constructor:
MyGame.createAsset({ "class":"Asset", "name":"foo" })
Asset is subclassed from the foundational class Atom, and is the most basic game world class from which all other asset classes, Tangible, Substance, and Intangible, are derived. Besides setting the prototypal validation and initialization functions, it also defines many common properties used to determine how assets appear in printed statements. It's unlikely that authors would want to subclass Asset directly as it has few properties, unless it's to create a whole new low-level Asset type.
Private Constructor:
var foo = new adventurejs.Asset(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 Asset 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:
- $can
- $is
- $must
- addWordsToLookup
- aliases
- callAction
- canSetVerbState
- destroy
- didDoVerbs
- didIoVerbs
- DOVallowOnce
- DOVallowWithAnything
- DOVallowWithAsset
- DOVallowWithNothing
- DOVdidDo
- DOVdidDoCount
- DOVdidTry
- DOVdidTryCount
- DOVgetConnectionCount
- DOVgetConnections
- DOVgetMaxConnections
- DOVhasIndirectObjects
- DOVhasMaxConnections
- DOVincrementDoCount
- DOVincrementTryCount
- DOVisConnectedToAnything
- DOVisConnectedToAsset
- DOVisConnectedToNothing
- DOVsetConnection
- DOVsetWithAsset
- DOVsetWithClass
- DOVunsetConnection
- getDescription
- getDescription
- getIndirectDescription
- Inherited from Atom getInheritance
- has
- hasAction
- Inherited from Atom hasClass
- hasDescription
- hasIndirectDescription
- incrementDoVerbCount
- incrementTryVerbCount
- initialize
- IOVallowOnce
- IOVallowWithAnything
- IOVallowWithAsset
- IOVallowWithNothing
- IOVdidDo
- IOVdidDoCount
- IOVdidTry
- IOVdidTryCount
- IOVgetConnectionCount
- IOVgetConnections
- IOVgetMaxConnections
- IOVhasDirectObjects
- IOVhasMaxConnections
- IOVincrementDoCount
- IOVincrementTryCount
- IOVisConnectedToAnything
- IOVisConnectedToAsset
- IOVisConnectedToNothing
- IOVsetConnection
- IOVsetWithAsset
- IOVsetWithClass
- IOVunsetConnection
- isDOV
- isIOV
- isState
- redirectVerb
- Inherited from Atom Overrides from Atom set
- setDOV
- setDOVs
- setIOV
- setIOVs
- setKnown
- setLinkedState
- setObjectOfVerbs
- setState
- setVerbSubscription
- setVerbSubscriptionsWithAssets
- setVerbSubscriptionsWithConnection
- toggleState
- undestroy
- unredirectVerb
- unsetDOV
- unsetDOVs
- unsetIOV
- unsetIOVs
- unsetVerbSubscription
- validate
Properties:
- adjectives
- article_name
- articlename
- Articlename
- can
- collection
- definite_article
- definite_name
- description
- descriptions
- did_do_verb
- did_do_verb_count
- did_try_verb
- did_try_verb_count
- dont_use_articles
- dov
- exclude_from_lookup
- Inherited from Atom game
- image
- indefinite_article
- indefinite_name
- iov
- is
- is.abstract
- is.collection
- is.destroyed
- is.extant
- is.global
- is.initialized
- is.known
- is.nameless
- is.plugged
- is.pluggedIn
- is.singleton
- is.validated
- must
- Inherited from Atom Name
- name_is_proper
- noun
- noun
- noun
- plural
- print_bold
- print_italic
- pronoun
- propername
- quirks
- singlePluralPairs
- split_name_for_world_lookup
- use_definite_article_in_lists
Methods Collapse all |
$can()
Defined in: adventure/asset/$can.js, line 7
$is()
Defined in: adventure/asset/$is.js, line 7
asset.is
nested object. It can also test
for more complex circumstances, such as in the case of
Tangibles. For example, if your game has a sword in a stone,
you can test whether the sword is currently in the stone with
MyGame.$("sword").is("in", "stone")
$must()
Defined in: adventure/asset/$must.js, line 7
addWordsToLookup(words, type)
Defined in: adventure/asset/addWordsToLookup.js, line 6
Parameters:
-
words
Array -
type
String
aliases()
Defined in: adventure/Asset.js, line 662
callAction(hook, asset_name, params) → {Boolean}
Defined in: adventure/asset/callAction.js, line 6
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
canSetVerbState(verb) → {Boolean}
Defined in: adventure/asset/canSetVerbState.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
destroy()
Defined in: adventure/asset/destroy.js, line 7
Todos: What else needs to happen on destroy?
didDoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didDoVerbs.js, line 6
Parameters:
-
verbs
Array
Returns:
Boolean
didIoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didIoVerbs.js, line 6
Parameters:
-
verbs
Array
Returns:
Boolean
DOVallowOnce(verb) → {Boolean}
Defined in: adventure/asset/DOVallowOnce.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
DOVallowWithAnything(verb) → {Boolean}
Defined in: adventure/asset/DOVallowWithAnything.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
DOVallowWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/DOVallowWithAsset.js, line 6
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
DOVallowWithNothing(verb) → {Boolean}
Defined in: adventure/asset/DOVallowWithNothing.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
DOVdidDo(verb) → {Boolean}
Defined in: adventure/asset/DOVdidDo.js, line 6
Parameters:
-
verb
String
_didDo is an alias meant for authors.
Returns:
Boolean
DOVdidDoCount(verb) → {Int}
Defined in: adventure/asset/DOVdidDoCount.js, line 6
Parameters:
-
verb
String
_doCount is an alias meant for authors.
Returns:
Int
DOVdidTry(verb) → {Boolean}
Defined in: adventure/asset/DOVdidTry.js, line 6
Parameters:
-
verb
String
_didTry is an alias meant for authors.
Returns:
Boolean
DOVdidTryCount(verb) → {Boolean}
Defined in: adventure/asset/DOVdidTryCount.js, line 6
Parameters:
-
verb
String
_tryCount is an alias meant for authors.
Returns:
Boolean
DOVgetConnectionCount(verb) → {Int}
Defined in: adventure/asset/DOVgetConnectionCount.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
DOVgetConnections(verb) → {Array}
Defined in: adventure/asset/DOVgetConnections.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Array
DOVgetMaxConnections(verb) → {Int}
Defined in: adventure/asset/DOVgetMaxConnections.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
DOVhasIndirectObjects(verb) → {Boolean}
Defined in: adventure/asset/DOVhasIndirectObjects.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
DOVhasMaxConnections(verb) → {Boolean}
Defined in: adventure/asset/DOVhasMaxConnections.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Boolean
DOVincrementDoCount(verb)
Defined in: adventure/asset/DOVincrementDoCount.js, line 6
Parameters:
-
verb
String
DOVincrementTryCount(verb)
Defined in: adventure/asset/DOVincrementTryCount.js, line 6
Parameters:
-
verb
String
DOVisConnectedToAnything(verb) → {Boolean}
Defined in: adventure/asset/DOVisConnectedToAnything.js, line 6
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
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
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
Parameters:
-
verb
String -
asset
Object
DOVsetWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/DOVsetWithAsset.js, line 6
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
DOVsetWithClass(verb, clas) → {Boolean}
Defined in: adventure/asset/DOVsetWithClass.js, line 6
Parameters:
-
verb
String -
clas
String
Returns:
Boolean
DOVunsetConnection(verb, asset)
Defined in: adventure/asset/DOVunsetConnection.js, line 6
Parameters:
-
verb
String -
asset
Object
getDescription(description) → {String}
Defined in: adventure/asset/getDescription.js, line 6
Parameters:
-
description
String
Returns:
String
getDescription(description) → {String}
Defined in: adventure/assets/tangibles/Exit.js, line 690
Parameters:
-
description
String
Returns:
String
getIndirectDescription(indirect_aspect, indirect_asset, direct_aspect) → {String}
Defined in: adventure/asset/getIndirectDescription.js, line 6
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
has()
Defined in: adventure/asset/$has.js, line 7
if( MyGame.$('crown').$has('jewel') ){ // do stuff }
hasAction(hook_name, asset1_name, asset2_name) → {Boolean}
Defined in: adventure/asset/hasAction.js, line 6
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
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
hasDescription(description) → {String|Boolean}
Defined in: adventure/asset/hasDescription.js, line 6
Parameters:
-
description
String
Returns:
String
|
Boolean
hasIndirectDescription(indirect_aspect, indirect_asset, direct_aspect) → {String|Boolean}
Defined in: adventure/asset/hasIndirectDescription.js, line 6
Parameters:
-
indirect_aspect
String -
indirect_asset
Object -
direct_aspect
String
Returns:
String
|
Boolean
incrementDoVerbCount(verb, index)
Defined in: adventure/asset/incrementDoVerbCount.js, line 6
Parameters:
-
verb
String -
index
Int
incrementTryVerbCount(verb, index)
Defined in: adventure/asset/incrementTryVerbCount.js, line 6
Parameters:
-
verb
String -
index
Int
initialize()
Defined in: adventure/Asset.js, line 498
Because we're not doing natural language processing and everything is indexed, we want to increase the chances that the parser understands player input that is partial or has words jumbled. We add a lookup entry for every combination of an object's adjectives with its noun(s). For example we have a "green colored pencil", and we want the parser to understand "green pencil" or "colored pencil". If there are other colored pencils, we want the parser to understand "colored pencils". If there are colored pencils in three shades of green, we want the parser to understand "green pencils". We store all of these combinations to the lookup.
IOVallowOnce(verb) → {Boolean}
Defined in: adventure/asset/IOVallowOnce.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
IOVallowWithAnything(verb) → {Boolean}
Defined in: adventure/asset/IOVallowWithAnything.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
IOVallowWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/IOVallowWithAsset.js, line 6
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
IOVallowWithNothing(verb) → {Boolean}
Defined in: adventure/asset/IOVallowWithNothing.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
IOVdidDo(verb) → {Boolean}
Defined in: adventure/asset/IOVdidDo.js, line 6
Parameters:
-
verb
String
_iDidDo is an alias meant for authors.
Returns:
Boolean
IOVdidDoCount(verb) → {Int}
Defined in: adventure/asset/IOVdidDoCount.js, line 6
Parameters:
-
verb
String
_iDoCount is an alias meant for authors.
Returns:
Int
IOVdidTry(verb) → {Boolean}
Defined in: adventure/asset/IOVdidTry.js, line 6
Parameters:
-
verb
String
_iDidTry is an alias meant for authors.
Returns:
Boolean
IOVdidTryCount(verb) → {Boolean}
Defined in: adventure/asset/IOVdidTryCount.js, line 6
Parameters:
-
verb
String
_iTryCount is an alias meant for authors.
Returns:
Boolean
IOVgetConnectionCount(verb) → {Int}
Defined in: adventure/asset/IOVgetConnectionCount.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
IOVgetConnections(verb) → {Array}
Defined in: adventure/asset/IOVgetConnections.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Array
IOVgetMaxConnections(verb) → {Int}
Defined in: adventure/asset/IOVgetMaxConnections.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Int
IOVhasDirectObjects(verb) → {Boolean}
Defined in: adventure/asset/IOVhasDirectObjects.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
IOVhasMaxConnections(verb) → {Boolean}
Defined in: adventure/asset/IOVhasMaxConnections.js, line 6
Parameters:
-
verb
String
The name of a verb.
Returns:
Boolean
IOVincrementDoCount(verb)
Defined in: adventure/asset/IOVincrementDoCount.js, line 6
Parameters:
-
verb
String
IOVincrementTryCount(verb)
Defined in: adventure/asset/IOVincrementTryCount.js, line 6
Parameters:
-
verb
String
IOVisConnectedToAnything(verb) → {Boolean}
Defined in: adventure/asset/IOVisConnectedToAnything.js, line 6
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
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
Parameters:
-
verb
String
The name of a verb.
Returns:
Boolean
IOVsetConnection(verb, asset)
Defined in: adventure/asset/IOVsetConnection.js, line 6
Parameters:
-
verb
String -
asset
Object
IOVsetWithAsset(verb, asset) → {Boolean}
Defined in: adventure/asset/IOVsetWithAsset.js, line 6
Parameters:
-
verb
String -
asset
Object
Returns:
Boolean
IOVsetWithClass(verb, clas) → {Boolean}
Defined in: adventure/asset/IOVsetWithClass.js, line 6
Parameters:
-
verb
String -
clas
String
Returns:
Boolean
IOVunsetConnection(verb, asset)
Defined in: adventure/asset/IOVunsetConnection.js, line 6
Parameters:
-
verb
String -
asset
Object
isDOV(verb) → {Boolean}
Defined in: adventure/asset/isDOV.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
isIOV(verb) → {Boolean}
Defined in: adventure/asset/isIOV.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
isState(verb) → {Boolean}
Defined in: adventure/asset/isState.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
redirectVerb(oldVerb, newVerb)
Defined in: adventure/asset/redirectVerb.js, line 7
Parameters:
-
oldVerb
String -
newVerb
String
set(props) → {Object}
Defined in: adventure/Atom.js, line 119
Overrides 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.)
setDOV(verb, params)
Defined in: adventure/asset/setDOV.js, line 7
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with direct object specified.
setDOVs(verb, params)
Defined in: adventure/asset/setDOVs.js, line 7
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with direct object specified.
setIOV(verb, params)
Defined in: adventure/asset/setIOV.js, line 7
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with indirect object specified.
setIOVs(verb, params)
Defined in: adventure/asset/setIOVs.js, line 7
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with indirect object specified.
setKnown(bool)
Defined in: adventure/asset/setKnown.js, line 7
Parameters:
-
bool
Boolean
setLinkedState(bool)
Defined in: adventure/asset/setLinkedState.js, line 7
Parameters:
-
bool
Boolean
setObjectOfVerbs(object_of, verb)
Defined in: adventure/asset/setObjectOfVerbs.js, line 7
Parameters:
-
object_of
String -
verb
String
setVerbSubscription
.
setState(verb, bool)
Defined in: adventure/asset/setState.js, line 6
Parameters:
-
verb
String -
bool
Boolean
setVerbSubscription(object_of, verb, params)
Defined in: adventure/asset/setVerbSubscription.js, line 6
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
Parameters:
-
description
String
Returns:
String
setVerbSubscriptionsWithConnection()
Defined in: adventure/asset/setVerbSubscriptionsWithConnection.js, line 6
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.
toggleState(verb) → {Boolean}
Defined in: adventure/asset/toggleState.js, line 6
Parameters:
-
verb
String
Returns:
Boolean
undestroy()
Defined in: adventure/asset/undestroy.js, line 7
unredirectVerb(oldVerb)
Defined in: adventure/asset/unredirectVerb.js, line 7
Parameters:
-
oldVerb
String
unsetDOV(verb)
Defined in: adventure/asset/unsetDOV.js, line 7
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetDOVs(verbs)
Defined in: adventure/asset/unsetDOVs.js, line 7
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetIOV(verb)
Defined in: adventure/asset/unsetIOV.js, line 7
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetIOVs(verbs)
Defined in: adventure/asset/unsetIOVs.js, line 7
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetVerbSubscription(object_of, verb)
Defined in: adventure/asset/unsetVerbSubscription.js, line 6
Parameters:
-
object_of
String -
verb
String
validate()
Defined in: adventure/Asset.js, line 475
Properties |
adjectives :Getter/Setter
Defined in: adventure/Asset.js, line 295
article_name :Getter
Defined in: adventure/Asset.js, line 388
articlename :Getter
Defined in: adventure/Asset.js, line 402
Articlename :Getter
Defined in: adventure/Asset.js, line 422
can :Object
Defined in: adventure/Asset.js, line 51
collection :Getter/Setter
Defined in: adventure/Asset.js, line 169
definite_article :String
Defined in: adventure/Asset.js, line 200
Default value: 'the'
definite_name :Getter
Defined in: adventure/Asset.js, line 360
description :*
Defined in: adventure/Asset.js, line 441
descriptions :Object
Defined in: adventure/Asset.js, line 145
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
did_do_verb_count :Object
Defined in: adventure/Asset.js, line 314
did_try_verb :Object
Defined in: adventure/Asset.js, line 324
did_try_verb_count :Object
Defined in: adventure/Asset.js, line 333
dont_use_articles :Boolean
Defined in: adventure/Asset.js, line 227
Default value: false
dov :Boolean
Defined in: adventure/Asset.js, line 73
Default value: {}
exclude_from_lookup :Boolean
Defined in: adventure/Asset.js, line 119
Default value: false
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
indefinite_article :String
Defined in: adventure/Asset.js, line 208
Default value: 'a'
indefinite_name :Getter
Defined in: adventure/Asset.js, line 374
iov :Boolean
Defined in: adventure/Asset.js, line 83
Default value: {}
is :Object
Defined in: adventure/Asset.js, line 38
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
Default value: false
Nested property of Is
is.collection :Boolean
Defined in: adventure/asset/Asset_Is.js, line 51
Default value: true
Nested property of Is
is.destroyed :Boolean
Defined in: adventure/asset/Asset_Is.js, line 36
Default value: false
Nested property of Is
is.extant :Boolean
Defined in: adventure/asset/Asset_Is.js, line 44
Default value: true
Nested property of Is
is.global :Boolean
Defined in: adventure/asset/Asset_Is.js, line 82
Default value: false
Nested property of Is
is.initialized :Boolean
Defined in: adventure/asset/Asset_Is.js, line 65
Default value: false
Nested property of Is
is.known :Boolean
Defined in: adventure/asset/Asset_Is.js, line 27
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.nameless :Boolean
Defined in: adventure/asset/Asset_Is.js, line 72
Default value: false
Nested property of Is
is.plugged :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 29
Default value: false
Nested property of Is
is.pluggedIn :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 36
Default value: false
Nested property of Is
is.singleton :Boolean
Defined in: adventure/asset/Asset_Is.js, line 98
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.validated :Boolean
Defined in: adventure/asset/Asset_Is.js, line 58
Default value: false
Nested property of Is
must :Object
Defined in: adventure/Asset.js, line 60
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
Default value: false
noun :String
Defined in: adventure/Asset.js, line 237
noun :String
Defined in: adventure/Asset.js, line 275
noun :String
Defined in: adventure/Asset.js, line 285
plural :String
Defined in: adventure/Asset.js, line 266
print_bold :Boolean
Defined in: adventure/Asset.js, line 105
Default value: false
print_italic :Boolean
Defined in: adventure/Asset.js, line 112
Default value: false
pronoun :String
Defined in: adventure/Asset.js, line 246
propername :String
Defined in: adventure/Asset.js, line 191
quirks :Object
Defined in: adventure/Asset.js, line 94
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.
singlePluralPairs :Array
Defined in: adventure/Asset.js, line 254
split_name_for_world_lookup :Boolean
Defined in: adventure/Asset.js, line 128
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.
use_definite_article_in_lists :Boolean
Defined in: adventure/Asset.js, line 216
Default value: false