using System;
using System.Xml.Serialization;

namespace Icarus.Logic.Physics
{
	/// <summary>
	/// Summary description for PhysicsTuxHand.
	/// </summary>
	public class PhysicsTuxHand : ChildObject
	{
		
        /// <summary>
        /// Collision box for this 
        /// </summary>
        private CollisionBox cb;

        //[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;
                ((CollisionBoxRobotTuxHand)(this.cb)).PO = this;
                return this.cb;
            }
            set { this.cb = value; }
        }


        public PhysicsTuxHand()
		{
			this.cb = new CollisionBoxRobotTuxHand();
		}
	}
}
