public class

TimerHandler

extends Object
implements IUpdateHandler
java.lang.Object
   ↳ org.anddev.andengine.engine.handler.timer.TimerHandler

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Fields
protected final ITimerCallback mTimerCallback
Public Constructors
TimerHandler(float pTimerSeconds, ITimerCallback pTimerCallback)
TimerHandler(float pTimerSeconds, boolean pAutoReset, ITimerCallback pTimerCallback)
Public Methods
float getTimerSeconds()
float getTimerSecondsElapsed()
boolean isAutoReset()
boolean isTimerCallbackTriggered()
void onUpdate(float pSecondsElapsed)
void reset()
void setAutoReset(boolean pAutoReset)
void setTimerCallbackTriggered(boolean pTimerCallbackTriggered)
void setTimerSeconds(float pTimerSeconds)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.anddev.andengine.engine.handler.IUpdateHandler

Fields

protected final ITimerCallback mTimerCallback

Public Constructors

public TimerHandler (float pTimerSeconds, ITimerCallback pTimerCallback)

public TimerHandler (float pTimerSeconds, boolean pAutoReset, ITimerCallback pTimerCallback)

Public Methods

public float getTimerSeconds ()

public float getTimerSecondsElapsed ()

public boolean isAutoReset ()

public boolean isTimerCallbackTriggered ()

public void onUpdate (float pSecondsElapsed)

public void reset ()

public void setAutoReset (boolean pAutoReset)

public void setTimerCallbackTriggered (boolean pTimerCallbackTriggered)

public void setTimerSeconds (float pTimerSeconds)