Namespace $.ui.scoreboard
Scoreboard widget
Defined in: ui.scoreboard.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
dec(val)
Decrements the score by 1 or by the supplied numeric argument
|
|
decTotal(val)
Decrements the total by 1 or by the supplied numeric argument
|
|
destroy()
Removes the scoreboard widget and all related data from the DOM
|
|
getScore()
Gets the current score
|
|
getTotal()
Gets the current total
|
|
inc(val)
Increments the score by 1 or by the supplied numeric argument
|
|
incTotal(val)
Increments the total by 1 or by the supplied numeric argument
|
|
restart()
Restarts the scoreboard and triggers the "scoreboardRestart" event
|
|
setScore(newScore)
Sets the current score
|
|
setTotal(newTotal)
Sets the current total
|
Method Detail
dec(val)
Decrements the score by 1 or by the supplied numeric argument
- Parameters:
- {Number} val Optional
- decrement value
decTotal(val)
Decrements the total by 1 or by the supplied numeric argument
- Parameters:
- {Number} val Optional
- decrement value
destroy()
Removes the scoreboard widget and all related data from the DOM
{Number}
getScore()
Gets the current score
- Returns:
- {Number} current score
{Number}
getTotal()
Gets the current total
- Returns:
- {Number} current total
inc(val)
Increments the score by 1 or by the supplied numeric argument
- Parameters:
- {Number} val Optional
- increment value
incTotal(val)
Increments the total by 1 or by the supplied numeric argument
- Parameters:
- {Number} val Optional
- increment value
restart()
Restarts the scoreboard and triggers the "scoreboardRestart" event
setScore(newScore)
Sets the current score
- Parameters:
- {Number} newScore
- new score
setTotal(newTotal)
Sets the current total
- Parameters:
- {Number} newTotal
- new score