Class: GlobalString
Extends: adventurejs.Asset
Defined in: adventure/assets/GlobalString.js, line 6
Todos: Is this fully functional?
Public Constructor:
MyGame.createAsset({ "class":"GlobalString", "name":"foo", [...] })
GlobalString is a special subclass of GlobalAsset used to handle player input that has quoted strings in it, such as 'say "foo" to man'. Authors should not have to construct or modify this Asset.
Private Constructor:
var foo = new adventurejs.GlobalString(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 GlobalString 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 addWordsToLookup
- Inherited from Asset aliases
- Inherited from Asset callAction
- Inherited from Asset canSetVerbState
- Inherited from Asset destroy
- Inherited from Asset didDoVerbs
- Inherited from Asset didIoVerbs
- 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 Asset Overrides from Asset getDescription
- Inherited from Asset getIndirectDescription
- Inherited from Atom getInheritance
- Inherited from Asset has
- Inherited from Asset hasAction
- Inherited from Atom hasClass
- Inherited from Asset hasDescription
- Inherited from Asset hasIndirectDescription
- Inherited from Asset incrementDoVerbCount
- Inherited from Asset incrementTryVerbCount
- Inherited from Asset 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 Asset isIOV
- Inherited from Asset isState
- 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 setKnown
- Inherited from Asset setLinkedState
- Inherited from Asset setObjectOfVerbs
- Inherited from Asset setState
- Inherited from Asset setVerbSubscription
- Inherited from Asset setVerbSubscriptionsWithAssets
- Inherited from Asset setVerbSubscriptionsWithConnection
- Inherited from Asset toggleState
- 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
Properties:
- Inherited from Asset adjectives
- Inherited from Asset article_name
- Inherited from Asset articlename
- Inherited from Asset Articlename
- 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_do_verb
- Inherited from Asset did_do_verb_count
- Inherited from Asset did_try_verb
- Inherited from Asset did_try_verb_count
- Inherited from Asset dont_use_articles
- Inherited from Asset dov
- 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.destroyed
- Inherited from Asset is.extant
- Inherited from Asset is.global
- Inherited from Asset is.initialized
- Inherited from Asset is.known
- Inherited from Asset is.nameless
- Inherited from Asset is.plugged
- Inherited from Asset is.pluggedIn
- 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_italic
- Inherited from Asset pronoun
- Inherited from Asset propername
- Inherited from Asset quirks
- Inherited from Asset singlePluralPairs
- Inherited from Asset split_name_for_world_lookup
- Inherited from Asset use_definite_article_in_lists
Methods Collapse all |
$can()
Defined in: adventure/asset/$can.js, line 7
Inherited from: adventurejs.Asset#$can
$is()
Defined in: adventure/asset/$is.js, line 7
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()
Defined in: adventure/asset/$must.js, line 7
Inherited from: adventurejs.Asset#$must
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
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
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/asset/destroy.js, line 7
Inherited from: adventurejs.Asset#destroy
Todos: What else needs to happen on 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
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
getDescription(description) → {String}
Defined in: adventure/asset/getDescription.js, line 6
Overrides 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
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
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
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
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()
Defined in: adventure/Asset.js, line 498
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.
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
isIOV(verb) → {Boolean}
Defined in: adventure/asset/isIOV.js, line 6
Inherited from: adventurejs.Asset#isIOV
Parameters:
-
verb
String
Returns:
Boolean
isState(verb) → {Boolean}
Defined in: adventure/asset/isState.js, line 6
Inherited from: adventurejs.Asset#isState
Parameters:
-
verb
String
Returns:
Boolean
redirectVerb(oldVerb, newVerb)
Defined in: adventure/asset/redirectVerb.js, line 7
Inherited from: adventurejs.Asset#redirectVerb
Parameters:
-
oldVerb
String -
newVerb
String
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.)
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/asset/setKnown.js, line 7
Inherited from: adventurejs.Asset#setKnown
Parameters:
-
bool
Boolean
setLinkedState(bool)
Defined in: adventure/asset/setLinkedState.js, line 7
Inherited from: adventurejs.Asset#setLinkedState
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
.
setState(verb, bool)
Defined in: adventure/asset/setState.js, line 6
Inherited from: adventurejs.Asset#setState
Parameters:
-
verb
String -
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.
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
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()
Defined in: adventure/Asset.js, line 475
Inherited from: adventurejs.Asset#validate
Properties |
adjectives :Getter/Setter
Defined in: adventure/Asset.js, line 295
Inherited from: adventurejs.Asset#adjectives
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
can :Object
Defined in: adventure/Asset.js, line 51
Inherited from: adventurejs.Asset#can
collection :Getter/Setter
Defined in: adventure/Asset.js, line 169
Inherited from: adventurejs.Asset#collection
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
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: {}
exclude_from_lookup :Boolean
Defined in: adventure/Asset.js, line 119
Inherited from: adventurejs.Asset#exclude_from_lookup
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
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.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.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.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.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.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.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.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.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.validated :Boolean
Defined in: adventure/asset/Asset_Is.js, line 58
Inherited from: adventurejs.Asset#is.validated
Default value: false
Nested property of Is
must :Object
Defined in: adventure/Asset.js, line 60
Inherited from: adventurejs.Asset#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
Overrides from: adventurejs.Asset#noun
plural :String
Defined in: adventure/Asset.js, line 266
Inherited from: adventurejs.Asset#plural
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
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.
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.
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