added Player GameObject, updated GrassTile.Clicked()
This commit is contained in:
parent
433158e658
commit
4612938b54
5 changed files with 76 additions and 5 deletions
|
|
@ -8,5 +8,20 @@ namespace Tiles
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// to be invoked when the Tile is clicked, handles the actions following on the click
|
||||
/// </summary>
|
||||
/// <param name="usable">the UsableItem that the Tile was clicked on with</param>
|
||||
/// <returns>a subclass of BaseTile if the Tile has to change, null if it stays the same type</returns>
|
||||
new public BaseTile Clicked(UsableItem usable) {
|
||||
base.Clicked(usable);
|
||||
BaseTile rv = null;
|
||||
if (usable.GetType() == typeof(Items.Hoe))
|
||||
{
|
||||
rv = new FarmlandTile();
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue