de.unifreiburg.twodeedoo.view
Interface ISchedulable
- All Known Subinterfaces:
- IActivity, IActor, ICompositeActor
- All Known Implementing Classes:
- BaseActor, CompositeActor, ErrorActivity, LinearMotionActor, NullActivity, WorldAdapter
public interface ISchedulable
I want to run from time to time.
- Author:
- anton
Method Summary |
boolean |
run(int elapsedTimeMillis,
IGameController gameController)
Perform some work. |
NULL_OBJECT
static final ISchedulable NULL_OBJECT
- an
ISchedulable
which does nothing.
run
boolean run(int elapsedTimeMillis,
IGameController gameController)
- Perform some work.
- Parameters:
elapsedTimeMillis
- time in ms since last call.gameController
- to stop the game or switch activities
- Returns:
- true: this should be run again, false: finished, don't call again.