|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSpritePixels
TurtleTurtle
public class TurtleTurtle
This class provides the turtle's appearance, the array of pixels that make up its image. In this case, the image is an abstract representation of a turtle.
| Field Summary |
|---|
| Fields inherited from class SpritePixels |
|---|
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 | |
|---|---|
TurtleTurtle(java.awt.Color color,
double heading)
|
|
| Method Summary | |
|---|---|
protected void |
initSpritePixels(int turtleSideSize)
Initialize the turtle's pixels, a square. |
| 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 |
| Constructor Detail |
|---|
public TurtleTurtle(java.awt.Color color,
double heading)
| Method Detail |
|---|
protected void initSpritePixels(int turtleSideSize)
initSpritePixels in class SpritePixels
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||