17 lines
596 B
Java
17 lines
596 B
Java
|
import ch.aplu.turtle.Turtle;
|
||
|
|
||
|
import java.util.LinkedList;
|
||
|
|
||
|
/**
|
||
|
* Created by Christian on 10.02.2015.
|
||
|
*/
|
||
|
public class PythagorasTreeQueue extends LinkedList<PythagorasTree> {
|
||
|
public PythagorasTreeQueue(PythagorasTree.PythagorasTreeVariant variant, PythagorasTriangleList triangles, Turtle turtle, double size, int momentaryDepth, int maximalDepth) {
|
||
|
super();
|
||
|
add(new PythagorasTree(variant, triangles, turtle, size, momentaryDepth, maximalDepth));
|
||
|
PythagorasTree tree = remove();
|
||
|
tree.drawPythagorasTree(this);
|
||
|
tree.addPythagorasTree(this);
|
||
|
}
|
||
|
}
|