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

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

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

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

}