galapagos
Class TurtleCommand

java.lang.Object
  extended by galapagos.TurtleCommand
Direct Known Subclasses:
DrawTextCommand, HeadingCommand, JumpToCommand, MoveCommand, MoveToCommand, OrientationCommand, PenColorCommand, PenSizeCommand, PenStateCommand, PlotCommand, PositionCommand, PrintCommand, SpeedCommand, TurnCommand, VisibilityCommand

abstract class TurtleCommand
extends java.lang.Object

Superclass of different types of turtle commands. Each command correspond to a Turtle operation such as move and turn. Date Modified: February, 2009

Author:
Dr Caffeine

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

Field Detail

owner

protected Turtle owner
Constructor Detail

TurtleCommand

TurtleCommand()
Method Detail

execute

abstract void execute()

addOwner

public void addOwner(Turtle t)