using System;

namespace Icarus.Logic.Physics
{
	/// <summary>
	/// Summary description for PhysicsWhip.
	/// </summary>
	public class PhysicsWhip : ChildObject
	{

        /// <summary>
        /// Collision box for this 
        /// </summary>
        private CollisionBox cb;

		public PhysicsWhip()
		{
			//
			// TODO: Add constructor logic here
			//
		}

        //[XmlIgnore]
        public override CollisionBox CollisionBox
        {
            get 
            {
                //Setting the current bounding rectangle of the bounding box.
                PhysicsRectangle rect = this.cb.BoundingBox;
                rect.X = (int)this.Location.x - this.CBXoffset;
                rect.Y = (int)this.Location.y - this.CBYoffset;
                rect.Width = this.cb.BoundingBoxWidth;
                rect.Height = this.cb.BoundingBoxHeight;
                this.cb.BoundingBox = rect;
                //((CollisionBoxobile)(this.cb)).WO = this;
                return this.cb;
            }
            set { this.cb = value; }
        }


	}
}
