de.unifreiburg.twodeedoo.model.test
Class ErrorActivity

java.lang.Object
  extended by de.unifreiburg.twodeedoo.model.test.ErrorActivity
All Implemented Interfaces:
IActivity, IKeyHandler, ISchedulable

public class ErrorActivity
extends java.lang.Object
implements IActivity

Implementation of IActivity which raises UnimplementedStubCalledException for each method call.

Author:
anton

Field Summary
 
Fields inherited from interface de.unifreiburg.twodeedoo.view.ISchedulable
NULL_OBJECT
 
Fields inherited from interface de.unifreiburg.twodeedoo.view.IKeyHandler
NULL_OBJECT
 
Constructor Summary
ErrorActivity()
           
 
Method Summary
 void addActor(IActor a)
          Add an actor
 void keyPressed(int keyCode)
          a key has been pressed.
 void keyReleased(int keyCode)
          a key has been released.
 boolean run(int elapsedTimeMillis)
          Perform some work.
 void switchToActivity(IActivity otherActivity)
          Replace this activity with another activity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorActivity

public ErrorActivity()
Method Detail

addActor

public void addActor(IActor a)
Description copied from interface: IActivity
Add an actor

Specified by:
addActor in interface IActivity
Parameters:
a - an actor that isn't yet in this IActivity.

switchToActivity

public void switchToActivity(IActivity otherActivity)
Description copied from interface: IActivity
Replace this activity with another activity. Does not necessarily replace the Scene.

Specified by:
switchToActivity in interface IActivity
Parameters:
otherActivity - another IActivity.

run

public boolean run(int elapsedTimeMillis)
Description copied from interface: ISchedulable
Perform some work.

Specified by:
run in interface ISchedulable
Parameters:
elapsedTimeMillis - time in ms since last call.
Returns:
true: this should be run again, false: finished, don't call again.

keyPressed

public void keyPressed(int keyCode)
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

keyReleased

public void keyReleased(int keyCode)
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