|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface AlarmScheduler
This interface contains all of the methods for scheduling and cancelling alarms. The FrameAdvancer implements this interface, and by extension, so too does the GameLoop and GameLevel.
| Method Summary | |
|---|---|
void |
cancelAlarm(Alarm alarm)
removes all pending alarms on this object. |
void |
cancelAllAlarms()
removes all pending alarms. |
void |
scheduleAbsolute(Alarm alarm,
double absolute)
sets and alarm to go off at a time relative to the beginning of time (zero). |
void |
scheduleRelative(Alarm alarm,
double relative)
sets and alarm to go off relative to the current time. |
| Method Detail |
|---|
void scheduleRelative(Alarm alarm,
double relative)
alarm - the class to call the alarm method onrelative - the time from now in seconds to call the alarm method
void scheduleAbsolute(Alarm alarm,
double absolute)
alarm - the class to call the alarm method onabsolute - the time in seconds to call the alarm methodvoid cancelAlarm(Alarm alarm)
alarm - the object that is the target of a pending alarmvoid cancelAllAlarms()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||