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