GAM456-SpaceInvaders / SpaceInvaders / 4_GameObject / Bumper / Bumpers.cs
Bumpers.cs
Raw
using System;
using System.Diagnostics;


namespace SpaceInvaders
{
    public abstract class Bumpers : Leaf
    {
        //-------------------------------------------------------------------
        //  FIELDS
        //-------------------------------------------------------------------
        public enum BumperType
        {
            LeftBumper,
            RightBumper
        }

        public Bumpers.BumperType bumperType;


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

        protected Bumpers(GameObject.ObjectName objName, Sprite.SpriteName spriteName, float x, float y, Bumpers.BumperType type)
            : base(objName, spriteName, x, y)
        {
            this.bumperType = type;
        }

        public BumperType GetBumperType()
        {
            return this.bumperType;
        }


    } // end class

} //end namespace