de.unifreiburg.twodeedoo.model.test
Class ErrorActivity
java.lang.Object
de.unifreiburg.twodeedoo.model.test.ErrorActivity
- All Implemented Interfaces:
- IActivity, IKeyHandler, ISchedulable
public class ErrorActivity
- extends java.lang.Object
- implements IActivity
Implementation of ICompositeActor
which raises UnimplementedStubCalledException
for each method call.
- Author:
- anton
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorActivity
public ErrorActivity()
run
public boolean run(int elapsedTimeMillis,
IGameController controller)
- Description copied from interface:
ISchedulable
- Perform some work.
- Specified by:
run
in interface ISchedulable
- Parameters:
elapsedTimeMillis
- time in ms since last call.controller
- to stop the game or switch activities
- Returns:
- true: this should be run again, false: finished, don't call again.
keyPressed
public void keyPressed(int keyCode,
IGameController controller)
- Description copied from interface:
IKeyHandler
- a key has been pressed.
- Specified by:
keyPressed
in interface IKeyHandler
- Parameters:
keyCode
- a code from KeyEvent
, e.g. KeyEvent.VK_LEFT
controller
- TODO
keyReleased
public void keyReleased(int keyCode,
IGameController controller)
- Description copied from interface:
IKeyHandler
- a key has been released.
- Specified by:
keyReleased
in interface IKeyHandler
- Parameters:
keyCode
- a code from KeyEvent
, e.g. KeyEvent.VK_LEFT
controller
- TODO
minimalTimeSlice
public int minimalTimeSlice()
- Description copied from interface:
IActivity
- Do not call me more often than with this many ms between two runs.
- Specified by:
minimalTimeSlice
in interface IActivity
- Returns:
- millisecond delay