001import java.util.HashMap ;
002/**
003 * This class is part of the "Pere-noel" application. 
004 * "Pere Noel" is a very simple, text based adventure game.
005 * 
006 * 
007 * @author  Célia PRIOL & Benoît CHAUVEAU
008 */
009public class Item
010{
011   private String aItemName;
012   private String aDescription ;
013   private double aPoids ;
014   private ItemList aItemcurrentRoom ;  
015    /**
016     * Constructeur pour les objets de la classe Item.
017     */
018    public Item (final String pItemName,final String pDescription, final double pPoids)
019    { this.aDescription = pDescription ;
020      this.aPoids = pPoids ;
021      this.aItemName =pItemName;
022    }
023    
024    public Item() // constructeur par défaut
025    {
026        this.aDescription = "\n"+"Il n'y a pas d'objet. "+"\n";
027        this.aPoids = 0 ;
028    }
029    
030        /**
031     * Renvoie la description et le poids de l'objet
032     */
033    public double getItemPoids()
034    {
035        return aPoids;
036    } 
037       
038    public String getItemDescription() {
039        return aDescription;
040    }
041    
042    public String getLongItem1Description()
043    {
044        return "\n"+"Il y a " + aDescription + ", son poids est de" + " " +  aPoids + " kg. " ;
045    }
046    
047    public String getName()  {
048        return aItemName;
049    }  
050    
051    
052//     /** 
053//      * Permet l'accès aux keys de la HashMap itemsList des objets de la pièce
054//      */
055//     public HashMap<String, Item> getItemcurrentRoom()
056//     {
057//         return this.aItemcurrentRoom.getItemPlayer();
058//     
059//   } 
060}
061
062