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
Methods inherited from interface de.unifreiburg.twodeedoo.view.ISchedulable |
run |
addActor
void addActor(IActor a)
- Add an actor
- Parameters:
a
- an actor that isn't yet in this IActivity
.
removeActor
void removeActor(IActor a)
- Remove that actor from the actors of this activity.
(But note that excessive use of this method is a design smell)
This will also reset the container of the actor.
- Parameters:
a
- an actor to remove. If not among my actors, I will do nothing.
switchToActivity
void switchToActivity(IActivity otherActivity)
- Replace this activity with another activity. Does not necessarily replace the Scene.
- Parameters:
otherActivity
- another IActivity.