using System; using System.Collections.Generic; using System.Text; using System; namespace Sprint2_actual.Commands { public class NextNPCCommand:ICommand { private Game1 game1; public NextNPCCommand(Game1 game) //This could be changed to pass the NPC class { this.game1 = game; } public void Execute() { //Go to next Enemy NPC that is created from the enemy factory game1.Npc.NextSprite(); } } }