using System; using Sprint3_actual.ActiveItems; namespace Sprint3_actual.Commands { public class LinkSwingSwordCommand:ICommand { private Game1 game1; //pass in the link object public LinkSwingSwordCommand(Game1 game) { this.game1 = game; } public void Execute() { game1.Player.Attack(); } } }