Class CrossTurtle
java.lang.Object
SpritePixels
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.
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 |
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
CrossTurtle
public CrossTurtle(java.awt.Color color,
double heading)
CrossTurtle
public CrossTurtle(int width,
int height,
java.awt.Color color,
double heading)
initSpritePixels
protected void initSpritePixels(int turtleSideSize)
- Initialize the pixels composing the Sprite's image, a cross.
- Overrides:
initSpritePixels
in class SpritePixels