Game-Design / Sprint3 / Commands / NextBlockCommand.cs
NextBlockCommand.cs
Raw
using System;
using System.Collections.Generic;
using System.Text;

namespace Sprint2_actual.Commands
{
    public class NextBlockCommand : ICommand
    {
        private Game1 game1;
        public NextBlockCommand(Game1 game) //This could be changed to pass the Block class
        {
            this.game1 = game;
        }

        public void Execute()
        {
            //Go to next Block that is created from the Block factory
            game1.Block.NextSprite();
        }
    }
}