Class Index | File Index

Classes


Namespace $.ui.kFooter

KFooter widget
Defined in: ui.kFooter.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
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
 
Removes the kFooter widget and all related data from the DOM
 
Gets the current score
 
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
 
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

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Feb 01 2010 11:23:18 GMT+0545 (NPT)