/**
 * The MiniSeries class represents a mini series object. Information 
 * about the mini series is stored and can be retrieved.
 * 
 *@author Michael Kölling and David J. Barnes
 *@updates and changes by Michael Rivers
 *@version April 13th 2006
 */
public class MiniSeries extends Item
{
    private int episodes;
    
    /**
     * Default Constructor
     */
    public MiniSeries()
    {
        episodes = 0;
    }
    
    /**
     * Initialize the mini series and pass parameters to the parent class
     */
    public MiniSeries(String theTitle, int time, int howManyEpisodes)
    {
        super(theTitle, time);
        episodes = howManyEpisodes;        
    }
    
    /**
     * This constructor method also passes the "got it" parameter
     */
    public MiniSeries(String theTitle, int time, 
                   int howManyEpisodes, boolean gotIt)
    {
        super(theTitle, time, gotIt);
        episodes = howManyEpisodes;        
    }

     /**
     * This one passes "got it" and comment to its parent class
     */
    public MiniSeries(String theTitle, int time, 
              int howManyEpisodes, boolean gotIt, String comment)
    {
        super(theTitle, time, gotIt, comment);
        episodes = howManyEpisodes;
    }
    
    /**
     * Accessor method to get the number of episodes
     */
    public int getEpisodes()
    {
        return episodes;
    }
    
    /**
     * Mutator method to change the number of episodes
     */
    public void setEpisodes(int howManyEpisodes)
    {
        episodes = howManyEpisodes;
    }

    /**
     * Print method calls parent's print method and prints
     * additional details about the mini series
     */
    public void print()
    {
        System.out.print("Mini Series: ");
        super.print();
        System.out.println("    " + episodes + " episodes");
    }

}

