/**
 * A Class of Objects that can be found on an ObjectField.
 */

import java.awt.Color;

public abstract class FieldObject {
    private ObjectField field;	// The field this object lives on.
    private Color color;	// The color of the object.
    private char letter;	// A letter that stands for the object.

    /* Create an object with colour and letter specified. */
    public FieldObject(ObjectField field, Color color, char letter)
    {
	this.field = field;
	this.color = color;
	this.letter = letter;
    }

    /* The field the object lives on. */
    protected ObjectField getField() 
    {
	return field;
    }

    /* The color of the object. */
    public Color getColor() 
    {
	return color;
    }

    /* The letter representing the object. */
    public char getLetter()
    {
	return letter;
    }
}

