using UnityEngine;
namespace Tiles
{
public class GrassTile : BaseTile
{
public GrassTile() : base(Color.green)
{
}
///
/// to be invoked when the Tile is clicked, handles the actions following on the click
///
/// the UsableItem that the Tile was clicked on with
/// a subclass of BaseTile if the Tile has to change, null if it stays the same type
public new BaseTile Clicked(UsableItem usable) {
base.Clicked(usable);
BaseTile rv = null;
if (usable.displayName == "Hoe")
{
rv = new FarmlandTile();
}
return rv;
}
}
}