Class TimedUpdatableTaskList
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList
-
public class TimedUpdatableTaskList extends java.lang.ObjectList of tasks that are to be executed at a certain time.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 28, 2013
-
-
Constructor Summary
Constructors Constructor Description TimedUpdatableTaskList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(TimedTask task)Add a new task.voidhandleClockTick(ch.sahits.game.event.data.ClockTick event)voidregisterWithClock()Register as Clock update listener.voidremove(TimedTask task)Cancel a timed task prematurely.
-
-
-
Method Detail
-
registerWithClock
@PostConstruct public void registerWithClock()
Register as Clock update listener.
-
add
public void add(TimedTask task)
Add a new task.- Parameters:
task- to be added
-
remove
public void remove(TimedTask task)
Cancel a timed task prematurely.- Parameters:
task- to be removed
-
handleClockTick
public void handleClockTick(ch.sahits.game.event.data.ClockTick event)
-
-