Serialized Form


Package <Unnamed>

Class TurtleBox extends JFrame implements Serializable

Serialized Fields

surface

JPanel surface

turtlePos

Point2D.Double turtlePos

turtleHidden

boolean turtleHidden

penIsDown

boolean penIsDown

angle

double angle

speed

int speed

elements

Vector<E> elements
This data structure contains the different elements to move. Let's admit, that this approach IS NOT object oriented, but the goal was to achive a TurtleBox in a single file without using inner classes.

The inner vector contains alway 5 elements: the type of the element as well as the starting and ending coordinates.