Game-Design / Sprint3 / Commands / LinkItemBombCommand.cs
LinkItemBombCommand.cs
Raw
using Sprint2_actual.ActiveItems;

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

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

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

}