## Class Message

    java.lang.Object
      greenfoot.Actor
          Message

    public class Message

extends greenfoot.Actor

This class creates a Message object.

Version:
  24.04.2015
Author:
  Maria - Despoina Gkaintatzi

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

### Message

    public Message(java.lang.String message,
                   java.awt.Color color)

  Constructor for objects of class Message

  Parameters:
    `message(String)` - the message to be displayed in the image
    `color(Color)` - the color of the text

Method Detail

### act

    public void act()

  Act - do whatever the Message wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.

  Overrides:
    `act` in class `greenfoot.Actor`