de.unifreiburg.twodeedoo.model
Interface IActivity

All Superinterfaces:
IKeyHandler, ISchedulable
All Known Implementing Classes:
ErrorActivity, SimpleActivity

public interface IActivity
extends ISchedulable, IKeyHandler

A company contains actors and runs them.

Author:
konrad

Field Summary
 
Fields inherited from interface de.unifreiburg.twodeedoo.view.ISchedulable
NULL_OBJECT
 
Fields inherited from interface de.unifreiburg.twodeedoo.view.IKeyHandler
NULL_OBJECT
 
Method Summary
 void addActor(IActor a)
          Add an actor
 void switchToActivity(IActivity otherActivity)
          Replace this activity with another activity.
 
Methods inherited from interface de.unifreiburg.twodeedoo.view.ISchedulable
run
 
Methods inherited from interface de.unifreiburg.twodeedoo.view.IKeyHandler
keyPressed, keyReleased
 

Method Detail

addActor

void addActor(IActor a)
Add an actor

Parameters:
a - an actor that isn't yet in this IActivity.

switchToActivity

void switchToActivity(IActivity otherActivity)
Replace this activity with another activity. Does not necessarily replace the Scene.

Parameters:
otherActivity - another IActivity.