using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Primitives3D;

namespace FredriksdalAssault2
{
    /// <summary>
    /// This class represent a barrel.
    /// </summary>
    public class Barrel : Item
    {
        #region Variables

        // No variables yet.

        #endregion

        #region Constructors

        /// <summary>
        /// Create a new nuclear waste object.
        /// </summary>
        /// <param name="position"></param>
        /// <param name="rotation"></param>
        /// <param name="scale"></param>
        public Barrel(Vector3 position, Vector3 rotation, float scale)
            : base(position, rotation, scale)
        {

            // Create the bounding sphere for the barrel
            CreateBoundingSpheres();
        }

        #endregion

        #region Methods

        /// <summary>
        /// Create a bounding sphere for the barrel.
        /// </summary>
        public override void CreateBoundingSpheres()
        {
            // Create a new list of bounding spheres
            this.boundingSpheres = new List<BoundingSphere>(1);

            // Create a new bounding sphere for the nuclear waste model.
            BoundingSphere sphere = new BoundingSphere(new Vector3(0, 0, 0), 2.0f);

            // Set the boundingSphere for the water barrel.
            this.boundingSpheres.Add(sphere.Transform(this.world));

        } // End of the CreateBoundingSphere method

        #endregion

    } // End of class

} // End of namespace
