java.lang.Objectgreenfoot.Actor
Message
public class Message
This class creates a Message object.
| Constructor Summary | |
|---|---|
Message(java.lang.String message,
java.awt.Color color)
Constructor for objects of class Message |
|
| Method Summary | |
|---|---|
void |
act()
Act - do whatever the Message wants to do. |
| 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 |
|---|
public Message(java.lang.String message,
java.awt.Color color)
message(String) - the message to be displayed in the imagecolor(Color) - the color of the text| Method Detail |
|---|
public void act()
act in class greenfoot.Actor