java.lang.Objectgreenfoot.Actor
Letter
public class Letter
This class creates a Letter object.
| Field Summary | |
|---|---|
static int |
INDEX
|
static int |
ITERATIONS
|
| Constructor Summary | |
|---|---|
Letter(java.awt.Color color)
Constructor for objects of class Letter. |
|
| Method Summary | |
|---|---|
void |
act()
Act - do whatever the Word wants to do. |
void |
fillLists()
Fills letters list with letters from the keys of the middle row of the keyboard |
TextImage |
getTextImage()
Returns the image of the object Letter. |
java.lang.String |
letterFromLevel()
Selects the appropriate letter provider method according to the level. |
java.lang.String |
levelFiveLetter()
Provides a certain pattern of letters for the fifth level of the game |
java.lang.String |
levelFourLetter()
Provides a certain pattern of letters for the forth level of the game |
java.lang.String |
levelOneLetter()
Provides a certain pattern of letters for the first level of the game |
java.lang.String |
levelThreeLetter()
Provides a certain pattern of letters for the third level of the game |
java.lang.String |
levelTwoLetter()
Provides a certain pattern of letters for the second level of the game |
void |
prepare()
Initiates components that will be included in the constructor |
| Methods inherited from class greenfoot.Actor |
|---|
addedToWorld, getImage, getIntersectingObjects, getNeighbours, getObjectsAtOffset, getObjectsInRange, getOneIntersectingObject, getOneObjectAtOffset, getRotation, getWorld, getX, getY, intersects, isAtEdge, isTouching, move, removeTouching, setImage, setImage, setLocation, setRotation, turn, turnTowards |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int INDEX
public static int ITERATIONS
| Constructor Detail |
|---|
public Letter(java.awt.Color color)
color(Color) - the color of the letter| Method Detail |
|---|
public void act()
act in class greenfoot.Actorpublic void fillLists()
public TextImage getTextImage()
public java.lang.String letterFromLevel()
public java.lang.String levelFiveLetter()
public java.lang.String levelFourLetter()
public java.lang.String levelOneLetter()
public java.lang.String levelThreeLetter()
public java.lang.String levelTwoLetter()
public void prepare()