Game-Design / Sprint2 / Sprint2_actual / Commands / LinkItemBoomerangACommand.cs
LinkItemBoomerangACommand.cs
Raw
using Sprint2_actual.ActiveItems;

namespace Sprint2_actual.Commands
{
    public class LinkItemBoomerangACommand : ICommand
    {
        private Game1 game1;

        public LinkItemBoomerangACommand(Game1 game)
        {
            this.game1 = game;
        }

        public void Execute()
        {
            game1.Player.SetItem(new Boomerang(game1.Player, game1));
            game1.Player.UseItem();
        } 
    }

}