galapagos
Class HeadingCommand

java.lang.Object
  extended by galapagos.TurtleCommand
      extended by galapagos.HeadingCommand

 class HeadingCommand
extends TurtleCommand


Field Summary
private  double heading
           
 
Fields inherited from class galapagos.TurtleCommand
owner
 
Constructor Summary
HeadingCommand(Turtle owner, double heading)
           
 
Method Summary
(package private)  void execute()
           
 
Methods inherited from class galapagos.TurtleCommand
addOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

heading

private double heading
Constructor Detail

HeadingCommand

public HeadingCommand(Turtle owner,
                      double heading)
Method Detail

execute

void execute()
Specified by:
execute in class TurtleCommand