GAM456-SpaceInvaders / SpaceInvaders / 4_GameObject / Bomb / Strategy / FallStraight.cs
FallStraight.cs
Raw
using System;
using System.Diagnostics;


namespace SpaceInvaders
{
    public class FallStraight : FallStrategy
    {
        //-------------------------------------------------------------------
        //  FIELDS
        //-------------------------------------------------------------------

        //private float prevY;

        //-------------------------------------------------------------------
        //  CLASS METHODS
        //-------------------------------------------------------------------

        public FallStraight()
        {
           // this.prevY = 0.0f;
        }

        //-------------------------------------------------------------------
        //  OVERRIDDEN METHODS
        //-------------------------------------------------------------------

        public override void Reset(float y)
        {
            //this.prevY = 0.0f;
        }

        public override void Fall(Bomb pBomb)
        {
            Debug.Assert(pBomb != null);
            //do nothing
        }
    }
}