de.unifreiburg.twodeedoo.view
Interface ISchedulable

All Known Subinterfaces:
IActivity, IActor, ICompositeActor
All Known Implementing Classes:
BaseActor, CompositeActor, LinearMotionActor, NullActivity, WorldAdapter

public interface ISchedulable

I want to run from time to time.


Field Summary
static ISchedulable NULL_OBJECT
          an ISchedulable which does nothing.
 
Method Summary
 boolean run(int elapsedTimeMillis, IGameController gameController)
          Perform some work.
 

Field Detail

NULL_OBJECT

static final ISchedulable NULL_OBJECT
an ISchedulable which does nothing.

Method Detail

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.