Class:VerbSubscription
Extends: adventurejs.VerbSubscription
Defined in: adventure/VerbSubscription.js, line 5
Description
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 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
- Overrides from VerbSubscription without_assets
- Overrides from VerbSubscription without_classes
- Overrides from VerbSubscription without_prepositions
Methods Collapse all |
disable
disable()
Defined in: adventure/VerbSubscription.js, line 275
Overrides from: adventurejs.VerbSubscription#disable
enable
enable()
Defined in: adventure/VerbSubscription.js, line 266
Overrides from: adventurejs.VerbSubscription#enable
Properties |
automatically
automatically :Boolean
Defined in: adventure/VerbSubscription.js, line 37
Overrides from: adventurejs.VerbSubscription#automatically
automatically_after_use
automatically_after_use :Boolean
Defined in: adventure/VerbSubscription.js, line 43
Overrides from: adventurejs.VerbSubscription#automatically_after_use
doAfterSuccess
doAfterSuccess :String
Defined in: adventure/VerbSubscription.js, line 76
Overrides from: adventurejs.VerbSubscription#doAfterSuccess
doAfterTry
doAfterTry :String
Defined in: adventure/VerbSubscription.js, line 58
Overrides from: adventurejs.VerbSubscription#doAfterTry
doBeforeSuccess
doBeforeSuccess :String
Defined in: adventure/VerbSubscription.js, line 67
Overrides from: adventurejs.VerbSubscription#doBeforeSuccess
doBeforeTry
doBeforeTry :String
Defined in: adventure/VerbSubscription.js, line 49
Overrides from: adventurejs.VerbSubscription#doBeforeTry
enabled
enabled :Boolean
Defined in: adventure/VerbSubscription.js, line 85
Overrides from: adventurejs.VerbSubscription#enabled
name
name :String
Defined in: adventure/VerbSubscription.js, line 98
Overrides from: adventurejs.VerbSubscription#name
on_failure
on_failure :String|*
Defined in: adventure/VerbSubscription.js, line 128
Overrides from: adventurejs.VerbSubscription#on_failure
on_first_failure
on_first_failure :String|*
Defined in: adventure/VerbSubscription.js, line 140
Overrides from: adventurejs.VerbSubscription#on_first_failure
on_first_success
on_first_success :String|*
Defined in: adventure/VerbSubscription.js, line 116
Overrides from: adventurejs.VerbSubscription#on_first_success
on_success
on_success :String|*
Defined in: adventure/VerbSubscription.js, line 104
Overrides from: adventurejs.VerbSubscription#on_success
once
once :Boolean
Defined in: adventure/VerbSubscription.js, line 152
Overrides from: adventurejs.VerbSubscription#once
then_destroy
then_destroy :Boolean|*
Defined in: adventure/VerbSubscription.js, line 158
Overrides from: adventurejs.VerbSubscription#then_destroy
with_anything
with_anything :Boolean
Defined in: adventure/VerbSubscription.js, line 165
Overrides from: adventurejs.VerbSubscription#with_anything
with_assets
with_assets :Array
Defined in: adventure/VerbSubscription.js, line 173
Overrides from: adventurejs.VerbSubscription#with_assets
with_classes
with_classes :Array
Defined in: adventure/VerbSubscription.js, line 191
Overrides from: adventurejs.VerbSubscription#with_classes
with_nothing
with_nothing :Boolean
Defined in: adventure/VerbSubscription.js, line 209
Overrides from: adventurejs.VerbSubscription#with_nothing
with_params
with_params :Object
Defined in: adventure/VerbSubscription.js, line 217
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
with_prepositions :Array
Defined in: adventure/VerbSubscription.js, line 228
Overrides from: adventurejs.VerbSubscription#with_prepositions
umbrella_stand.dov.knock.with_prepositions = ["over"]
will allow the action to succeed.
without_assets
without_assets :Array
Defined in: adventure/VerbSubscription.js, line 182
Overrides from: adventurejs.VerbSubscription#without_assets
without_classes
without_classes :Array
Defined in: adventure/VerbSubscription.js, line 200
Overrides from: adventurejs.VerbSubscription#without_classes
without_prepositions
without_prepositions :Array
Defined in: adventure/VerbSubscription.js, line 240
Overrides from: adventurejs.VerbSubscription#without_prepositions
umbrella_stand.dov.knock.without_prepositions = ["over"]
will prevent the action from succeeding.