import greenfoot.*;
import java.awt.Color;
import java.awt.Font;

/**
 * This class creates a Message object.
 * 
 * @author Maria - Despoina Gkaintatzi 
 * @version 24.04.2015
 */
public class Message extends Actor
{
    private TextImage image;
    /**
     * Constructor for objects of class Message
     * 
     * @param message(String) the message to be displayed in the image
     * @param color(Color) the color of the text
     */
    public Message(String message, Font font, Color color)
    {
        image = new TextImage(message,font, color, null);
        setImage(image);
    }
    /**
     * Act - do whatever the Message wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
    }    
}
