Namespace $.ui.kFooter
KFooter widget
Defined in: ui.kFooter.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 kFooter 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()
Resets the score and total to initial values and triggers
the "kFooterRestart" event
|
|
setScore(newScore)
Sets the current score
|
|
setTotal(newTotal)
Sets the current total
|
Namespace Detail
$.ui.kFooter
Emits the event kFooterWinGame when the maxScore is reached
Emits the event kFooterRestart when game restarted
Start button emits kFooterStart event when clicked
Restart button emits kFooterRestart event when clicked
Pause button emits the kFooterPause event when clicked
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 kFooter 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()
Resets the score and total to initial values and triggers
the "kFooterRestart" event
setScore(newScore)
Sets the current score
- Parameters:
- {Number} newScore
- new score
setTotal(newTotal)
Sets the current total
- Parameters:
- {Number} newTotal
- new total