Class:HintManager
Defined in: adventure/HintManager.js, line 6
Description
HintManager manages the job of displaying hints. It contains all the methods needed to create the Hint pop-up screen.
HintManager is created automatically by Game. This is an internal class that authors should not need to construct or modify. However, if you'd like to try, you can find styles for the Hint pop-ups in adventurejs.css. All relevant styles are prefixed with '.hint_'.
Private Constructor:
var foo = new adventurejs.HintManager(game)
Parameters:
-
gameGame
A reference to the game instance.
- Index
- Methods
- Properties
Methods Collapse all |
clickClose
clickClose()
Defined in: adventure/HintManager.js, line 130
closeDialog
closeDialog()
Defined in: adventure/HintManager.js, line 143
drawHints
drawHints()
Defined in: adventure/HintManager.js, line 168
openDialog
openDialog()
Defined in: adventure/HintManager.js, line 242
placeButtons
placeButtons()
Defined in: adventure/HintManager.js, line 283
revealHint
revealHint()
Defined in: adventure/HintManager.js, line 331
set
set(props) → {adventurejs.HintManager}
Defined in: adventure/HintManager.js, line 364
Parameters:
-
propsObject
A generic object containing properties to copy to the DisplayObject instance.
Returns:
adventurejs.HintManager
Returns the instance the method is called on (useful for chaining calls.)
updateCounts
updateCounts()
Defined in: adventure/HintManager.js, line 375
Properties |
game
game :Object
Defined in: adventure/HintManager.js, line 29
Default value: {}
hint_dialog
hint_dialog :HTMLElement
Defined in: adventure/HintManager.js, line 43
Default value: {}
hintCancel
hintCancel :HTMLElement
Defined in: adventure/HintManager.js, line 114
Default value: {}
initialized
initialized :Object
Defined in: adventure/HintManager.js, line 36
Default value: false