Class Letter

java.lang.Object
  extended by greenfoot.Actor
      extended by Letter

public class Letter
extends greenfoot.Actor

This class creates a Letter object.

Version:
24.04.2015
Author:
Maria - Despoina Gkaintatzi

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.
 TextImage getTextImage()
          Returns the image of the object Letter.
 
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
 

Constructor Detail

Letter

public Letter(java.awt.Color color)
Constructor for objects of class Letter.

Parameters:
color(Color) - the color of the letter
Method Detail

act

public void act()
Act - do whatever the Word wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.

Overrides:
act in class greenfoot.Actor

getTextImage

public TextImage getTextImage()
Returns the image of the object Letter.

Returns:
the image of the Letter object