Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0

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:

  • game Game
    A reference to the game instance.
Inherited Overrides

Methods Collapse all  |  Expand all

clickClose
clickClose()

Defined in: adventure/GoalManager.js, line 215

Function that gets called by the Close button.
closeDialog
closeDialog()

Defined in: adventure/GoalManager.js, line 178

Close the Goal modal dialog.
openDialog
openDialog()

Defined in: adventure/GoalManager.js, line 130

Open the Goal modal dialog.
set
set(props) → {adventurejs.GoalManager}

Defined in: adventure/GoalManager.js, line 228

Parameters:

  • props Object
    A generic object containing properties to copy to the DisplayObject instance.
Provides a chainable shortcut method for setting a number of properties on the 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: {}

A reference back to the main Game object.
goal_dialog
goal_dialog :HTMLElement

Defined in: adventure/GoalManager.js, line 43

Default value: {}

Div element to contain the Goal dialog.
goalCancel
goalCancel :HTMLElement

Defined in: adventure/GoalManager.js, line 114

Default value: {}

Button element to dispel the Goal dialog.
initialized
initialized :Object

Defined in: adventure/GoalManager.js, line 36

Default value: false

Used to manage the drawing of the goal dialog.