import java.awt.*;

public class GridSquare {
    public GridThing thing;

    public void addThing(GridThing gt){
	thing = gt;
    }

    public void behave(GridSquare[][] g, int mx, int my, int mn){
	if(thing != null)
	    thing.behave(g, mx, my, mn);
    }

    public Color getColor() {
	if(thing != null)
	    return thing.getColor();
	else
	    return Color.white;
    }
}
