Class CrossTurtle

java.lang.Object
  extended by SpritePixels
      extended by CrossTurtle

public class CrossTurtle
extends SpritePixels

This class provides the turtle's appearance, the array of pixels that make up its image. In this case, the image is a cross.


Field Summary
static int DEFAULT_CROSS_HEIGHT
          Default height of a CrossTurtle's image.
static int DEFAULT_CROSS_WIDTH
          Default width of a CrossTurtle's image.
 
Fields inherited from class SpritePixels
BLACK_OPAQUE_PIXEL, CLASS_NAME, MAX_SPRITE_HEIGHT, MAX_SPRITE_WIDTH, MIN_SPRITE_HEIGHT, MIN_SPRITE_WIDTH, ROTATE_LEFT_RIGHT, ROTATE_OFF, ROTATE_ON, ROTATE_RIGHT_LEFT
 
Constructor Summary
CrossTurtle(java.awt.Color color, double heading)
           
CrossTurtle(int width, int height, java.awt.Color color, double heading)
           
 
Method Summary
protected  void initSpritePixels(int turtleSideSize)
          Initialize the pixels composing the Sprite's image, a cross.
 
Methods inherited from class SpritePixels
getHeight, getMinimumHeight, getMinimumWidth, getPixels, getSideSize, getWidth, setCirclePixels, setLinePixels, setPixel, setSpriteColor, setSpriteHeading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CROSS_HEIGHT

public static final int DEFAULT_CROSS_HEIGHT
Default height of a CrossTurtle's image.

See Also:
Constant Field Values

DEFAULT_CROSS_WIDTH

public static final int DEFAULT_CROSS_WIDTH
Default width of a CrossTurtle's image.

See Also:
Constant Field Values
Constructor Detail

CrossTurtle

public CrossTurtle(java.awt.Color color,
                   double heading)

CrossTurtle

public CrossTurtle(int width,
                   int height,
                   java.awt.Color color,
                   double heading)
Method Detail

initSpritePixels

protected void initSpritePixels(int turtleSideSize)
Initialize the pixels composing the Sprite's image, a cross.

Overrides:
initSpritePixels in class SpritePixels