Class:GoalManager
Defined in: adventure/GoalManager.js, line 6
Description
GoalManager manages the job of displaying goals. It contains all the methods needed to create the Goal pop-up screen.
GoalManager 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 Goal pop-ups in adventurejs.css. All relevant styles are prefixed with '.goal_'.
Private Constructor:
var foo = new adventurejs.GoalManager(game)
Parameters:
-
gameGame
A reference to the game instance.
- Index
- Methods
- Properties
Methods Collapse all |
clickClose
clickClose()
Defined in: adventure/GoalManager.js, line 215
closeDialog
closeDialog()
Defined in: adventure/GoalManager.js, line 178
openDialog
openDialog()
Defined in: adventure/GoalManager.js, line 130
set
set(props) → {adventurejs.GoalManager}
Defined in: adventure/GoalManager.js, line 228
Parameters:
-
propsObject
A generic object containing properties to copy to the DisplayObject instance.
Returns:
adventurejs.GoalManager
Returns the instance the method is called on (useful for chaining calls.)
Properties |
game
game :Object
Defined in: adventure/GoalManager.js, line 29
Default value: {}
goal_dialog
goal_dialog :HTMLElement
Defined in: adventure/GoalManager.js, line 43
Default value: {}
goalCancel
goalCancel :HTMLElement
Defined in: adventure/GoalManager.js, line 114
Default value: {}
initialized
initialized :Object
Defined in: adventure/GoalManager.js, line 36
Default value: false