Class:GlobalAsset
Extends: adventurejs.Asset
Defined in: adventure/assets/GlobalAsset.js, line 5
Todos: This isn't complete, is it?
Constructor:
MyGame.createAsset({ "class":"GlobalAsset", "name":"foo", [...] })
Description
GlobalAsset is a special class of abstract global Assets. Authors should not have to construct or modify this Asset.
Private Constructor:
var foo = new adventurejs.GlobalAsset(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 GlobalAsset class, it must be defined in a game file as a generic object. That object will be used at runtime to construct a new game class instance, which will be validated and initialized before adding it to the Game. See above for the public constructor, or see Game#createAsset to learn more.
Parameters:
-
game_name
String
The name of the top level game object. -
name
String
A name for the object, to be serialized and used as ID.
- Index
- Methods
- Properties
Index
Methods:
- Inherited from Asset $can
- Inherited from Asset $is
- Inherited from Asset $must
- Inherited from Asset Overrides from Asset $quirks
- Inherited from Asset addWordsToLookup
- Inherited from Asset aliases
- Inherited from Asset allowVerbOnce
- Inherited from Asset allowVerbWithAnything
- Inherited from Asset allowVerbWithAsset
- Inherited from Asset allowVerbWithNothing
- Inherited from Asset allowVerbWithPreposition
- Inherited from Asset canDoVerbAutomatically
- Inherited from Asset canSetVerbState
- Inherited from Asset Overrides from Asset destroy
- Inherited from Asset didDoVerbs
- Inherited from Asset didIoVerbs
- Inherited from Asset didVerb
- Inherited from Asset didVerbCount
- Inherited from Asset doVerbAction
- Inherited from Atom getClassInheritance
- Inherited from Asset getVerbConnectionCount
- Inherited from Asset getVerbConnections
- Inherited from Asset getVerbMaxConnections
- Inherited from Asset getVerbParam
- Inherited from Asset getVerbState
- Inherited from Asset has
- Inherited from Asset hasAction
- Inherited from Atom hasClass
- Inherited from Asset hasDescription
- Inherited from Asset hasDirectObjects
- Inherited from Asset hasIndirectObjects
- Inherited from Asset hasVerbMaxConnections
- Inherited from Asset hasVerbParam
- Inherited from Asset iDidVerb
- Inherited from Asset iDidVerbCount
- Inherited from Asset incrementDoVerbCount
- Inherited from Asset incrementTryVerbCount
- Inherited from Asset initialize
- Inherited from Asset isConnectedToAnything
- Inherited from Asset isConnectedToAsset
- Inherited from Asset isConnectedToNothing
- Inherited from Asset isDOV
- Inherited from Asset isIOV
- Inherited from Asset isOV
- Inherited from Asset isVerbState
- Inherited from Asset iTriedVerb
- Inherited from Asset iTriedVerbCount
- Inherited from Asset redirectVerb
- Inherited from Atom set
- Inherited from Asset setDOV
- Inherited from Asset setDOVs
- Inherited from Asset setIOV
- Inherited from Asset setIOVs
- Inherited from Asset setIs
- Inherited from Asset setLinkedState
- Inherited from Asset setObjectOfVerbs
- Inherited from Asset setVerbState
- Inherited from Asset setVerbSubscription
- Inherited from Asset setVerbSubscriptionsWithAssets
- Inherited from Asset setVerbWithAsset
- Inherited from Asset setVerbWithClass
- Inherited from Asset toggleState
- Inherited from Asset triedVerb
- Inherited from Asset triedVerbCount
- Inherited from Asset undestroy
- 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 Asset validate
- Inherited from Asset validateVerbConnections
Properties:
- Inherited from Asset adjectives
- Inherited from Asset article_name
- Inherited from Asset articlename
- Inherited from Asset Articlename
- Inherited from Asset articlename_is
- Inherited from Asset Articlename_is
- Inherited from Asset articlename_isnt
- Inherited from Asset Articlename_isnt
- Inherited from Asset articlename_was
- Inherited from Asset Articlename_was
- Inherited from Asset articlename_wasnt
- Inherited from Asset Articlename_wasnt
- Inherited from Asset can
- Inherited from Asset collection
- Inherited from Asset definite_article
- Inherited from Asset definite_name
- Inherited from Asset description
- Inherited from Asset descriptions
- Inherited from Asset did
- Inherited from Asset dont_use_articles
- Inherited from Asset Overrides from Asset dov
- Inherited from Asset exclude_from_disambiguation
- Inherited from Asset exclude_from_lookup
- 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 Asset is.collection
- Inherited from Asset is.data
- Inherited from Asset is.destroyed
- Inherited from Asset is.extant
- Inherited from Asset is.global
- Inherited from Asset is.initialized
- Inherited from Asset Overrides from Asset is.known
- Inherited from Asset is.nameless
- Inherited from Asset is.placeholder
- Inherited from Asset is.plugged
- Inherited from Asset is.pluggedIn
- Inherited from Asset is.plural
- Inherited from Asset is.singleton
- Inherited from Asset is.validated
- Inherited from Asset must
- Inherited from Atom Name
- Inherited from Asset name_is_proper
- Inherited from Asset Overrides from Asset noun
- Inherited from Asset plural
- Inherited from Asset print_bold
- Inherited from Asset print_class
- Inherited from Asset print_italic
- Inherited from Asset print_style
- Inherited from Asset pronouns
- Inherited from Asset propername
- Inherited from Asset Overrides from Asset proxy
- Inherited from Asset quirks
- Inherited from Asset short_name
- Inherited from Asset singlePluralPairs
- Inherited from Asset split_name_for_world_lookup
- Inherited from Asset Overrides from Asset to_be
- Inherited from Asset tried
- Inherited from Asset use_definite_article_in_lists
Methods Collapse all |
$can
$can()
Defined in: adventure/asset/$can.js, line 6
Inherited from: adventurejs.Asset#$can
$is
$is()
Defined in: adventure/asset/$is.js, line 6
Inherited from: adventurejs.Asset#$is
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
$must()
Defined in: adventure/asset/$must.js, line 6
Inherited from: adventurejs.Asset#$must
$quirks
$quirks() → {Boolean}
Defined in: adventure/asset/$quirk.js, line 6
Overrides from: adventurejs.Asset#$quirks
Returns:
Boolean
addWordsToLookup
addWordsToLookup(words, type)
Defined in: adventure/asset/addWordsToLookup.js, line 5
Inherited from: adventurejs.Asset#addWordsToLookup
Parameters:
-
words
Array -
type
String
aliases
aliases()
Defined in: adventure/Asset.js, line 832
Inherited from: adventurejs.Asset#aliases
allowVerbOnce
allowVerbOnce(verb, ov) → {Boolean}
Defined in: adventure/asset/allowVerbOnce.js, line 5
Inherited from: adventurejs.Asset#allowVerbOnce
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
allowVerbWithAnything
allowVerbWithAnything(verb, ov) → {Boolean}
Defined in: adventure/asset/allowVerbWithAnything.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithAnything
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
allowVerbWithAsset
allowVerbWithAsset(options) → {Boolean}
Defined in: adventure/asset/allowVerbWithAsset.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithAsset
Parameters:
-
options
Object
An object of options.Properties
-
verb
String
Default value:
The name of a verb. -
asset
Object
Default value:
A game asset. -
ov
String <optional>
Default value: "dov"
Direct or indirect object of verb (default is "dov").
-
Returns:
Boolean
allowVerbWithNothing
allowVerbWithNothing(verb, ov) → {Boolean}
Defined in: adventure/asset/allowVerbWithNothing.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithNothing
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
allowVerbWithPreposition
allowVerbWithPreposition(verb, prep, ov) → {Boolean}
Defined in: adventure/asset/allowVerbWithPreposition.js, line 5
Inherited from: adventurejs.Asset#allowVerbWithPreposition
Parameters:
-
verb
String
A verb name. -
prep
String
A preposition. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
canDoVerbAutomatically
canDoVerbAutomatically(verb) → {Boolean}
Defined in: adventure/asset/canDoVerbAutomatically.js, line 5
Inherited from: adventurejs.Asset#canDoVerbAutomatically
Parameters:
-
verb
String
Returns:
Boolean
canSetVerbState
canSetVerbState(verb) → {Boolean}
Defined in: adventure/asset/canSetVerbState.js, line 5
Inherited from: adventurejs.Asset#canSetVerbState
Parameters:
-
verb
String
Returns:
Boolean
destroy
destroy()
Defined in: adventure/Asset.js, line 818
Overrides from: adventurejs.Asset#destroy
didDoVerbs
didDoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didDoVerbs.js, line 5
Inherited from: adventurejs.Asset#didDoVerbs
Parameters:
-
verbs
Array
Returns:
Boolean
didIoVerbs
didIoVerbs(verbs) → {Boolean}
Defined in: adventure/asset/didIoVerbs.js, line 5
Inherited from: adventurejs.Asset#didIoVerbs
Parameters:
-
verbs
Array
Returns:
Boolean
didVerb
didVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/didVerb.js, line 5
Inherited from: adventurejs.Asset#didVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$did is an alias for authors.
Returns:
Boolean
didVerbCount
didVerbCount(verb, ov) → {Int}
Defined in: adventure/asset/didVerbCount.js, line 5
Inherited from: adventurejs.Asset#didVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$didCount is an alias for authors.
Returns:
Int
doVerbAction
doVerbAction(action, asset2, asset3, params) → {Boolean}
Defined in: adventure/asset/doVerbAction.js, line 5
Inherited from: adventurejs.Asset#doVerbAction
Parameters:
-
action
string -
asset2
string
We use asset.name here instead of asset.id in support of authors, because we're never asking them to deal in IDs, only names. Hooks will only be defined by authors, so we let them use asset.name as their identifier. We do however make an effort to see if an id has been passed instead of a name, because Ivan. -
asset3
string -
params
object
Arbitrary parameter object.
Returns:
Boolean
getClassInheritance
getClassInheritance() → {Array}
Defined in: adventure/Atom.js, line 168
Inherited from: adventurejs.Atom#getClassInheritance
Returns:
Array
getVerbConnectionCount
getVerbConnectionCount(verb, to_ov) → {Int}
Defined in: adventure/asset/getVerbConnectionCount.js, line 5
Inherited from: adventurejs.Asset#getVerbConnectionCount
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Int
getVerbConnections
getVerbConnections(verb, to_ov) → {Array}
Defined in: adventure/asset/getVerbConnections.js, line 5
Inherited from: adventurejs.Asset#getVerbConnections
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Array
getVerbMaxConnections
getVerbMaxConnections(verb, ov) → {Boolean}
Defined in: adventure/asset/getVerbMaxConnections.js, line 5
Inherited from: adventurejs.Asset#getVerbMaxConnections
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
getVerbParam
getVerbParam(verb, param) → {*}
Defined in: adventure/asset/getVerbParam.js, line 5
Inherited from: adventurejs.Asset#getVerbParam
Parameters:
-
verb
String
The name of a verb. -
param
String
The name of a param in with_params.
Returns:
*
getVerbState
getVerbState()
Defined in: adventure/asset/getVerbState.js, line 5
Inherited from: adventurejs.Asset#getVerbState
has
has(asset)
Defined in: adventure/asset/$has.js, line 6
Inherited from: adventurejs.Asset#has
Parameters:
-
asset
Object
if( MyGame.$('crown').$has('jewel') ){ // do stuff }
hasAction
hasAction(hook_name, asset1_name, asset2_name) → {Boolean}
Defined in: adventure/asset/hasAction.js, line 5
Inherited from: adventurejs.Asset#hasAction
Parameters:
-
hook_name
string -
asset1_name
string
We use asset.name here instead of asset.id to make life slightly easier for authors. Asset IDs are formed from asset names, but generally we don't expect authors to be aware of IDs. Hooks will only be defined by authors, so let them use asset.name as their identifier. We do however make an effort to see if an id has been passed instead of a name. -
asset2_name
string
Returns:
Boolean
hasClass
hasClass(prop) → {Boolean}
Defined in: adventure/Atom.js, line 148
Inherited from: adventurejs.Atom#hasClass
Parameters:
-
prop
String
Name of the class to test for.
Returns:
Boolean
hasDescription
hasDescription(identifier) → {String|Boolean}
Defined in: adventure/asset/hasDescription.js, line 5
Inherited from: adventurejs.Asset#hasDescription
Parameters:
-
identifier
String
Returns:
String
|
Boolean
hasDirectObjects
hasDirectObjects(verb) → {Boolean}
Defined in: adventure/asset/hasDirectObjects.js, line 5
Inherited from: adventurejs.Asset#hasDirectObjects
Parameters:
-
verb
String
Returns:
Boolean
hasIndirectObjects
hasIndirectObjects(verb) → {Boolean}
Defined in: adventure/asset/hasIndirectObjects.js, line 5
Inherited from: adventurejs.Asset#hasIndirectObjects
Parameters:
-
verb
String
Returns:
Boolean
hasVerbMaxConnections
hasVerbMaxConnections(verb, to_ov) → {Boolean}
Defined in: adventure/asset/hasVerbMaxConnections.js, line 5
Inherited from: adventurejs.Asset#hasVerbMaxConnections
Todos: dov/iov or both
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Boolean
hasVerbParam
hasVerbParam(verb, param) → {*}
Defined in: adventure/asset/hasVerbParam.js, line 5
Inherited from: adventurejs.Asset#hasVerbParam
Parameters:
-
verb
String
The name of a verb. -
param
String
The name of a param in with_params.
Returns:
*
iDidVerb
iDidVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/iDidVerb.js, line 5
Inherited from: adventurejs.Asset#iDidVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iDidDo is an alias for authors.
Returns:
Boolean
iDidVerbCount
iDidVerbCount(verb, ov) → {Int}
Defined in: adventure/asset/iDidVerbCount.js, line 5
Inherited from: adventurejs.Asset#iDidVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iDidCount is an alias for authors.
Returns:
Int
incrementDoVerbCount
incrementDoVerbCount(verb, ov)
Defined in: adventure/asset/incrementDoVerbCount.js, line 5
Inherited from: adventurejs.Asset#incrementDoVerbCount
Parameters:
-
verb
String -
ov
String
"dov" or "iov" representing a direct or indirect object.
incrementTryVerbCount
incrementTryVerbCount(verb, index)
Defined in: adventure/asset/incrementTryVerbCount.js, line 5
Inherited from: adventurejs.Asset#incrementTryVerbCount
Parameters:
-
verb
String -
index
Int
initialize
initialize()
Defined in: adventure/Asset.js, line 642
Inherited from: adventurejs.Asset#initialize
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.
isConnectedToAnything
isConnectedToAnything(verb, to_ov) → {Boolean}
Defined in: adventure/asset/isConnectedToAnything.js, line 5
Inherited from: adventurejs.Asset#isConnectedToAnything
Parameters:
-
verb
String
The name of a verb. -
to_ov
String
Direct or indirect object of verb.
plugIn
or tie
. For example, if this asset
is a computer plugged into an outlet, this method would return true.
Returns:
Boolean
isConnectedToAsset
isConnectedToAsset(verb, asset, to_ov) → {Boolean}
Defined in: adventure/asset/isConnectedToAsset.js, line 5
Inherited from: adventurejs.Asset#isConnectedToAsset
Parameters:
-
verb
String
The name of the verb to test. -
asset
Object | String
A game asset or asset id to test. -
to_ov
String
Connection to direct or indirect objects of verb.
Returns:
Boolean
isConnectedToNothing
isConnectedToNothing(verb, ov) → {Boolean}
Defined in: adventure/asset/isConnectedToNothing.js, line 5
Inherited from: adventurejs.Asset#isConnectedToNothing
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
asset.is.connected_by.plugIn.to_iov
to represent the computer's plugged in state.
Returns:
Boolean
isDOV
isDOV(verb) → {Boolean}
Defined in: adventure/asset/isDOV.js, line 5
Inherited from: adventurejs.Asset#isDOV
Parameters:
-
verb
String
Returns:
Boolean
isIOV
isIOV(verb) → {Boolean}
Defined in: adventure/asset/isIOV.js, line 5
Inherited from: adventurejs.Asset#isIOV
Parameters:
-
verb
String
Returns:
Boolean
isOV
isOV(verb) → {Boolean}
Defined in: adventure/asset/isOV.js, line 5
Inherited from: adventurejs.Asset#isOV
Parameters:
-
verb
String
Returns:
Boolean
isVerbState
isVerbState(verb) → {Boolean}
Defined in: adventure/asset/isVerbState.js, line 5
Inherited from: adventurejs.Asset#isVerbState
Parameters:
-
verb
String
Returns:
Boolean
iTriedVerb
iTriedVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/iTriedVerb.js, line 5
Inherited from: adventurejs.Asset#iTriedVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iTried is an alias for authors.
Returns:
Boolean
iTriedVerbCount
iTriedVerbCount(verb, ov) → {Boolean}
Defined in: adventure/asset/iTriedVerbCount.js, line 5
Inherited from: adventurejs.Asset#iTriedVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$iTryCount is an alias for authors.
Returns:
Boolean
redirectVerb
redirectVerb(oldVerb, newVerb)
Defined in: adventure/asset/redirectVerb.js, line 6
Inherited from: adventurejs.Asset#redirectVerb
Parameters:
-
oldVerb
String -
newVerb
String
set
set(props) → {Object}
Defined in: adventure/Atom.js, line 136
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.)
setDOV
setDOV(verb, params)
Defined in: adventure/asset/setDOV.js, line 6
Inherited from: adventurejs.Asset#setDOV
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with direct object specified.
setDOVs
setDOVs(verb, params)
Defined in: adventure/asset/setDOVs.js, line 6
Inherited from: adventurejs.Asset#setDOVs
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with direct object specified.
setIOV
setIOV(verb, params)
Defined in: adventure/asset/setIOV.js, line 6
Inherited from: adventurejs.Asset#setIOV
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with indirect object specified.
setIOVs
setIOVs(verb, params)
Defined in: adventure/asset/setIOVs.js, line 6
Inherited from: adventurejs.Asset#setIOVs
Parameters:
-
verb
String -
params
Object
setVerbSubscription
with indirect object specified.
setIs
setIs(bool)
Defined in: adventure/asset/setIs.js, line 6
Inherited from: adventurejs.Asset#setIs
Parameters:
-
bool
Boolean
setLinkedState
setLinkedState(bool)
Defined in: adventure/asset/setLinkedState.js, line 6
Inherited from: adventurejs.Asset#setLinkedState
Parameters:
-
bool
Boolean
setObjectOfVerbs
setObjectOfVerbs(object_of, verb)
Defined in: adventure/asset/setObjectOfVerbs.js, line 6
Inherited from: adventurejs.Asset#setObjectOfVerbs
Parameters:
-
object_of
String -
verb
String
setVerbSubscription
.
setVerbState
setVerbState()
Defined in: adventure/asset/setVerbState.js, line 5
Inherited from: adventurejs.Asset#setVerbState
setVerbSubscription
setVerbSubscription(object_of, verb, params)
Defined in: adventure/asset/setVerbSubscription.js, line 5
Inherited from: adventurejs.Asset#setVerbSubscription
Todos: phase out earlier version
Parameters:
-
object_of
String -
verb
String | Object
An early version takes a string, with separate params object. A later version takes an object that includes the verb name as an object key and params as value. -
params
Object
An optional param that works with the earlier version.
setVerbSubscriptionsWithAssets
setVerbSubscriptionsWithAssets(description) → {String}
Defined in: adventure/asset/setVerbSubscriptionsWithAssets.js, line 5
Inherited from: adventurejs.Asset#setVerbSubscriptionsWithAssets
Parameters:
-
description
String
Returns:
String
setVerbWithAsset
setVerbWithAsset(verb, asset, ov) → {Boolean}
Defined in: adventure/asset/setVerbWithAsset.js, line 5
Inherited from: adventurejs.Asset#setVerbWithAsset
Parameters:
-
verb
String
The name of a verb. -
asset
Object -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
setVerbWithClass
setVerbWithClass(verb, klass, ov) → {Boolean}
Defined in: adventure/asset/setVerbWithClass.js, line 5
Inherited from: adventurejs.Asset#setVerbWithClass
Parameters:
-
verb
String
The name of a verb. -
klass
String -
ov
String
Direct or indirect object of verb.
Returns:
Boolean
toggleState
toggleState(verb) → {Boolean}
Defined in: adventure/asset/toggleState.js, line 5
Inherited from: adventurejs.Asset#toggleState
Parameters:
-
verb
String
Returns:
Boolean
triedVerb
triedVerb(verb, ov) → {Boolean}
Defined in: adventure/asset/triedVerb.js, line 5
Inherited from: adventurejs.Asset#triedVerb
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$tried is an alias for authors.
Returns:
Boolean
triedVerbCount
triedVerbCount(verb, ov) → {Boolean}
Defined in: adventure/asset/triedVerbCount.js, line 5
Inherited from: adventurejs.Asset#triedVerbCount
Parameters:
-
verb
String
The name of a verb. -
ov
String
Direct or indirect object of verb.
$triedCount is an alias for authors.
Returns:
Boolean
undestroy
undestroy()
Defined in: adventure/asset/undestroy.js, line 6
Inherited from: adventurejs.Asset#undestroy
unredirectVerb
unredirectVerb(oldVerb)
Defined in: adventure/asset/unredirectVerb.js, line 6
Inherited from: adventurejs.Asset#unredirectVerb
Parameters:
-
oldVerb
String
unsetDOV
unsetDOV(verb)
Defined in: adventure/asset/unsetDOV.js, line 6
Inherited from: adventurejs.Asset#unsetDOV
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetDOVs
unsetDOVs(verbs)
Defined in: adventure/asset/unsetDOVs.js, line 6
Inherited from: adventurejs.Asset#unsetDOVs
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetIOV
unsetIOV(verb)
Defined in: adventure/asset/unsetIOV.js, line 6
Inherited from: adventurejs.Asset#unsetIOV
Parameters:
-
verb
String
unsetVerbSubscription
.
unsetIOVs
unsetIOVs(verbs)
Defined in: adventure/asset/unsetIOVs.js, line 6
Inherited from: adventurejs.Asset#unsetIOVs
Parameters:
-
verbs
Array
unsetVerbSubscription
.
unsetVerbSubscription
unsetVerbSubscription(object_of, verb)
Defined in: adventure/asset/unsetVerbSubscription.js, line 5
Inherited from: adventurejs.Asset#unsetVerbSubscription
Parameters:
-
object_of
String -
verb
String
validate
validate()
Defined in: adventure/Asset.js, line 620
Inherited from: adventurejs.Asset#validate
validateVerbConnections
validateVerbConnections()
Defined in: adventure/asset/validateVerbConnections.js, line 5
Inherited from: adventurejs.Asset#validateVerbConnections
dov[verb]
and some verbs can make connections between assets
that they act upon. Connections are stored in
asset.is.connected_by.verbname.to_iov["array of asset ids"]
.
Authors can preset connections in their game file,
so we validate any preset connections here.
Properties |
adjectives
adjectives :Getter/Setter
Defined in: adventure/Asset.js, line 329
Inherited from: adventurejs.Asset#adjectives
article_name
article_name :Getter
Defined in: adventure/Asset.js, line 411
Inherited from: adventurejs.Asset#article_name
articlename
articlename :Getter
Defined in: adventure/Asset.js, line 425
Inherited from: adventurejs.Asset#articlename
Articlename
Articlename :Getter
Defined in: adventure/Asset.js, line 492
Inherited from: adventurejs.Asset#Articlename
articlename_is
articlename_is :Getter
Defined in: adventure/Asset.js, line 452
Inherited from: adventurejs.Asset#articlename_is
Articlename_is
Articlename_is :Getter
Defined in: adventure/Asset.js, line 501
Inherited from: adventurejs.Asset#Articlename_is
articlename_isnt
articlename_isnt :Getter
Defined in: adventure/Asset.js, line 462
Inherited from: adventurejs.Asset#articlename_isnt
Articlename_isnt
Articlename_isnt :Getter
Defined in: adventure/Asset.js, line 510
Inherited from: adventurejs.Asset#Articlename_isnt
articlename_was
articlename_was :Getter
Defined in: adventure/Asset.js, line 472
Inherited from: adventurejs.Asset#articlename_was
Articlename_was
Articlename_was :Getter
Defined in: adventure/Asset.js, line 519
Inherited from: adventurejs.Asset#Articlename_was
articlename_wasnt
articlename_wasnt :Getter
Defined in: adventure/Asset.js, line 482
Inherited from: adventurejs.Asset#articlename_wasnt
Articlename_wasnt
Articlename_wasnt :Getter
Defined in: adventure/Asset.js, line 528
Inherited from: adventurejs.Asset#Articlename_wasnt
can
can :Object
Defined in: adventure/Asset.js, line 58
Inherited from: adventurejs.Asset#can
collection
collection :Getter/Setter
Defined in: adventure/Asset.js, line 201
Inherited from: adventurejs.Asset#collection
definite_article
definite_article :String
Defined in: adventure/Asset.js, line 232
Inherited from: adventurejs.Asset#definite_article
Default value: 'the'
definite_name
definite_name :Getter
Defined in: adventure/Asset.js, line 370
Inherited from: adventurejs.Asset#definite_name
description
description :*
Defined in: adventure/Asset.js, line 557
Inherited from: adventurejs.Asset#description
descriptions
descriptions :Object
Defined in: adventure/Asset.js, line 177
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
did :Object
Defined in: adventure/Asset.js, line 339
Inherited from: adventurejs.Asset#did
dont_use_articles
dont_use_articles :Boolean
Defined in: adventure/Asset.js, line 260
Inherited from: adventurejs.Asset#dont_use_articles
Default value: false
dov
dov :Boolean
Defined in: adventure/Asset.js, line 72
Overrides from: adventurejs.Asset#dov
Default value: {}
exclude_from_disambiguation
exclude_from_disambiguation :Boolean
Defined in: adventure/Asset.js, line 151
Inherited from: adventurejs.Asset#exclude_from_disambiguation
Default value: false
exclude_from_lookup
exclude_from_lookup :Boolean
Defined in: adventure/Asset.js, line 142
Inherited from: adventurejs.Asset#exclude_from_lookup
Default value: false
game
game :Getter
Defined in: adventure/Atom.js, line 115
Inherited from: adventurejs.Atom#game
this.game
.
image
image :String
Defined in: adventure/Asset.js, line 353
Inherited from: adventurejs.Asset#image
indefinite_article
indefinite_article :String
Defined in: adventure/Asset.js, line 241
Inherited from: adventurejs.Asset#indefinite_article
Default value: 'a'
indefinite_name
indefinite_name :Getter
Defined in: adventure/Asset.js, line 397
Inherited from: adventurejs.Asset#indefinite_name
iov
iov :Boolean
Defined in: adventure/Asset.js, line 90
Inherited from: adventurejs.Asset#iov
Default value: {}
is
is :Object
Defined in: adventure/Asset.js, line 47
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
is.abstract :Boolean
Defined in: adventure/Asset_Is.js, line 88
Inherited from: adventurejs.Asset#is.abstract
Default value: false
Nested property of Is
is.collection
is.collection :Boolean
Defined in: adventure/Asset_Is.js, line 48
Inherited from: adventurejs.Asset#is.collection
Default value: true
Nested property of Is
is.data
is.data :Boolean
Defined in: adventure/Asset_Is.js, line 103
Inherited from: adventurejs.Asset#is.data
Default value: false
Nested property of Is
is.destroyed
is.destroyed :Boolean
Defined in: adventure/Asset_Is.js, line 33
Inherited from: adventurejs.Asset#is.destroyed
Default value: false
Nested property of Is
is.extant
is.extant :Boolean
Defined in: adventure/Asset_Is.js, line 41
Inherited from: adventurejs.Asset#is.extant
Default value: true
Nested property of Is
is.global
is.global :Boolean
Defined in: adventure/Asset_Is.js, line 79
Inherited from: adventurejs.Asset#is.global
Default value: false
Nested property of Is
is.initialized
is.initialized :Boolean
Defined in: adventure/Asset_Is.js, line 62
Inherited from: adventurejs.Asset#is.initialized
Default value: false
Nested property of Is
is.known
is.known :Boolean
Defined in: adventure/Asset_Is.js, line 26
Overrides from: adventurejs.Asset#is.known
Default value: false
Nested property of Is
is.nameless
is.nameless :Boolean
Defined in: adventure/Asset_Is.js, line 69
Inherited from: adventurejs.Asset#is.nameless
Default value: false
Nested property of Is
is.placeholder
is.placeholder :Boolean
Defined in: adventure/Asset_Is.js, line 95
Inherited from: adventurejs.Asset#is.placeholder
Default value: false
Nested property of Is
is.plugged
is.plugged :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 35
Inherited from: adventurejs.Asset#is.plugged
Default value: false
Nested property of Is
is.pluggedIn
is.pluggedIn :Boolean
Defined in: adventure/assets/Tangible_Is.js, line 42
Inherited from: adventurejs.Asset#is.pluggedIn
Default value: false
Nested property of Is
is.plural
is.plural :Boolean
Defined in: adventure/Asset_Is.js, line 121
Inherited from: adventurejs.Asset#is.plural
Default value: false
Nested property of Is
is.singleton
is.singleton :Boolean
Defined in: adventure/Asset_Is.js, line 111
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.validated
is.validated :Boolean
Defined in: adventure/Asset_Is.js, line 55
Inherited from: adventurejs.Asset#is.validated
Default value: false
Nested property of Is
must
must :Object
Defined in: adventure/Asset.js, line 65
Inherited from: adventurejs.Asset#must
Name
Name :String
Defined in: adventure/Atom.js, line 102
Inherited from: adventurejs.Atom#Name
name_is_proper
name_is_proper :Boolean
Defined in: adventure/Asset.js, line 216
Inherited from: adventurejs.Asset#name_is_proper
Default value: false
noun
noun :String
Defined in: adventure/Asset.js, line 270
Overrides from: adventurejs.Asset#noun
plural
plural :String
Defined in: adventure/Asset.js, line 300
Inherited from: adventurejs.Asset#plural
print_bold
print_bold :Boolean
Defined in: adventure/Asset.js, line 112
Inherited from: adventurejs.Asset#print_bold
Default value: false
print_class
print_class :String
Defined in: adventure/Asset.js, line 134
Inherited from: adventurejs.Asset#print_class
Default value: ""
print_italic
print_italic :Boolean
Defined in: adventure/Asset.js, line 119
Inherited from: adventurejs.Asset#print_italic
Default value: false
print_style
print_style :String
Defined in: adventure/Asset.js, line 126
Inherited from: adventurejs.Asset#print_style
Default value: ""
pronouns
pronouns :String
Defined in: adventure/Asset.js, line 279
Inherited from: adventurejs.Asset#pronouns
propername
propername :String
Defined in: adventure/Asset.js, line 223
Inherited from: adventurejs.Asset#propername
proxy
proxy :Getter
Defined in: adventure/Asset.js, line 547
Overrides from: adventurejs.Asset#proxy
quirks
quirks :Object
Defined in: adventure/Asset.js, line 101
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.
short_name
short_name :Getter
Defined in: adventure/Asset.js, line 384
Inherited from: adventurejs.Asset#short_name
singlePluralPairs
singlePluralPairs :Array
Defined in: adventure/Asset.js, line 288
Inherited from: adventurejs.Asset#singlePluralPairs
split_name_for_world_lookup
split_name_for_world_lookup :Boolean
Defined in: adventure/Asset.js, line 160
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.
to_be
to_be :Getter
Defined in: adventure/Asset.js, line 591
Overrides from: adventurejs.Asset#to_be
tried
tried :Object
Defined in: adventure/Asset.js, line 346
Inherited from: adventurejs.Asset#tried
use_definite_article_in_lists
use_definite_article_in_lists :Boolean
Defined in: adventure/Asset.js, line 249
Inherited from: adventurejs.Asset#use_definite_article_in_lists
Default value: false