CSE115.ShapeWorld
Class CompositeBehavior

java.lang.Object
  extended by CSE115.ShapeWorld.Behavior
      extended by CSE115.ShapeWorld.CompositeBehavior

public class CompositeBehavior
extends Behavior


Field Summary
 
Fields inherited from class CSE115.ShapeWorld.Behavior
MOVE, PULSE, ROTATE
 
Constructor Summary
CompositeBehavior(Behavior b1, Behavior b2)
           
CompositeBehavior(List<Behavior> behavior)
           
 
Method Summary
 void add(Behavior b)
           
 void perform(Shape s)
           
 void remove(Behavior b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeBehavior

public CompositeBehavior(Behavior b1,
                         Behavior b2)

CompositeBehavior

public CompositeBehavior(List<Behavior> behavior)
Method Detail

add

public void add(Behavior b)

remove

public void remove(Behavior b)

perform

public void perform(Shape s)
Specified by:
perform in class Behavior