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

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

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

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

}