galapagos
Class MoveToCommand

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

 class MoveToCommand
extends TurtleCommand


Field Summary
private  Position target
           
 
Fields inherited from class galapagos.TurtleCommand
owner
 
Constructor Summary
MoveToCommand(Turtle owner, Position target)
           
 
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

target

private Position target
Constructor Detail

MoveToCommand

public MoveToCommand(Turtle owner,
                     Position target)
Method Detail

execute

void execute()
Specified by:
execute in class TurtleCommand