de.unifreiburg.twodeedoo.model
Interface ICompositeActor

All Superinterfaces:
IKeyHandler, ISchedulable
All Known Implementing Classes:
CompositeActor

public interface ICompositeActor
extends ISchedulable, IKeyHandler

A composite actor 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 removeActor(IActor a)
          Remove that actor from the actors of this 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 ICompositeActor.

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.