using System; using System.Collections.Generic; using System.Text; namespace Sprint2_actual.Commands { public class NextItemCommand : ICommand { private Game1 game1; public NextItemCommand(Game1 game) //This could be changed to pass the Item class { this.game1 = game; } public void Execute() { //Go to next Item that is created from the Item factory game1.itemMachine.ChangeSprite(1); } } }