using System;

namespace Icarus.Logic.Physics
{
	/// <summary>
	/// Summary description for CollisionBoxWall.
	/// </summary>
	[Serializable]
    public class CollisionBoxWall : CollisionBox
    {
        public CollisionBoxWall()
        {
            this.Description = "CB-Wall";
            this.RectArray[0] = new RectangleWall();
            this.RectArray[0].X = this.BoundingBox.X;
            this.RectArray[0].Y = this.BoundingBox.Y;
            this.RectArray[0].Width = this.BoundingBox.Width;
            this.RectArray[0].Height = this.BoundingBox.Height;
        }

        /// <summary>
        /// Sets the internal WallRectangle's location
        /// </summary>
        public override void setSpecial()
        {
            this.RectArray[0].X = this.BoundingBox.X;
            this.RectArray[0].Y = this.BoundingBox.Y;
            this.RectArray[0].Width = this.BoundingBox.Width;
            this.RectArray[0].Height = this.BoundingBox.Height;
        }

	}
}
