Class:VerbSubscription
Extends: adventurejs.VerbSubscription
Defined in: adventure/VerbSubscription.js, line 5
VerbSubscription is a special class
that offers methods to manage which verbs are allowed
to act on which assets. This is intended to provide
very fine grained control over verb/noun interactions.
Verb subscriptions are defined on assets at
asset.dov[verb] and asset.iov[verb].
VerbSubscriptions and their values are passed down the
inheritance chain. For example:
asset.dov.examine
is available on Matter,
and inherited by
Tangible,
which allows all Tangible
subclasses to be examined.
Private Constructor:
var foo = new adventurejs.VerbSubscription(game_name, name)
Parameters:
-
game_name
String
Name of top level game instance that is scoped to window. -
name
String
Instance name.
- Index
- Methods
- Properties
Index
Methods:
Properties:
- Overrides from VerbSubscription automatically
- Overrides from VerbSubscription automatically_after_use
- Overrides from VerbSubscription doAfterSuccess
- Overrides from VerbSubscription doAfterTry
- Overrides from VerbSubscription doBeforeSuccess
- Overrides from VerbSubscription doBeforeTry
- Overrides from VerbSubscription enabled
- Overrides from VerbSubscription inherited_from
- Overrides from VerbSubscription name
- Overrides from VerbSubscription on_failure
- Overrides from VerbSubscription on_first_failure
- Overrides from VerbSubscription on_first_success
- Overrides from VerbSubscription on_success
- Overrides from VerbSubscription once
- Overrides from VerbSubscription then_destroy
- Overrides from VerbSubscription with_anything
- Overrides from VerbSubscription with_assets
- Overrides from VerbSubscription with_classes
- Overrides from VerbSubscription with_nothing
- Overrides from VerbSubscription with_params
- Overrides from VerbSubscription with_prepositions
Methods Collapse all |
disable()
Defined in: adventure/VerbSubscription.js, line 252
Overrides from: adventurejs.VerbSubscription#disable
enable()
Defined in: adventure/VerbSubscription.js, line 243
Overrides from: adventurejs.VerbSubscription#enable
Properties |
automatically :Boolean
Defined in: adventure/VerbSubscription.js, line 40
Overrides from: adventurejs.VerbSubscription#automatically
automatically_after_use :Boolean
Defined in: adventure/VerbSubscription.js, line 46
Overrides from: adventurejs.VerbSubscription#automatically_after_use
doAfterSuccess :String
Defined in: adventure/VerbSubscription.js, line 79
Overrides from: adventurejs.VerbSubscription#doAfterSuccess
doAfterTry :String
Defined in: adventure/VerbSubscription.js, line 61
Overrides from: adventurejs.VerbSubscription#doAfterTry
doBeforeSuccess :String
Defined in: adventure/VerbSubscription.js, line 70
Overrides from: adventurejs.VerbSubscription#doBeforeSuccess
doBeforeTry :String
Defined in: adventure/VerbSubscription.js, line 52
Overrides from: adventurejs.VerbSubscription#doBeforeTry
enabled :Boolean
Defined in: adventure/VerbSubscription.js, line 88
Overrides from: adventurejs.VerbSubscription#enabled
inherited_from :String
Defined in: adventure/VerbSubscription.js, line 94
Overrides from: adventurejs.VerbSubscription#inherited_from
Todos: this isn't currently working as envisioned
name :String
Defined in: adventure/VerbSubscription.js, line 101
Overrides from: adventurejs.VerbSubscription#name
on_failure :String|*
Defined in: adventure/VerbSubscription.js, line 131
Overrides from: adventurejs.VerbSubscription#on_failure
on_first_failure :String|*
Defined in: adventure/VerbSubscription.js, line 143
Overrides from: adventurejs.VerbSubscription#on_first_failure
on_first_success :String|*
Defined in: adventure/VerbSubscription.js, line 119
Overrides from: adventurejs.VerbSubscription#on_first_success
on_success :String|*
Defined in: adventure/VerbSubscription.js, line 107
Overrides from: adventurejs.VerbSubscription#on_success
once :Boolean
Defined in: adventure/VerbSubscription.js, line 155
Overrides from: adventurejs.VerbSubscription#once
then_destroy :Boolean|*
Defined in: adventure/VerbSubscription.js, line 161
Overrides from: adventurejs.VerbSubscription#then_destroy
with_anything :Boolean
Defined in: adventure/VerbSubscription.js, line 168
Overrides from: adventurejs.VerbSubscription#with_anything
with_assets :Array
Defined in: adventure/VerbSubscription.js, line 176
Overrides from: adventurejs.VerbSubscription#with_assets
with_classes :Array
Defined in: adventure/VerbSubscription.js, line 186
Overrides from: adventurejs.VerbSubscription#with_classes
with_nothing :Boolean
Defined in: adventure/VerbSubscription.js, line 196
Overrides from: adventurejs.VerbSubscription#with_nothing
with_params :Object
Defined in: adventure/VerbSubscription.js, line 204
Overrides from: adventurejs.VerbSubscription#with_params
with_params.max_connections
for setting limits on how many other assets one asset can be plugged into.
See any given verb's documentation to learn if it has any
special parameters.
with_prepositions :Array
Defined in: adventure/VerbSubscription.js, line 215
Overrides from: adventurejs.VerbSubscription#with_prepositions
umbrella_stand.dov.knock.with_prepositions = ["over"]
will allow the action to succeed.