using System; namespace Sprint2_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(); } } }