@@ -0,0 +1,1785 @@
+ %0A%0A/**%0A * This class is part of the %22World of NolsPotLex%22 application. %22World of NolsPotLex%22 is a%0A * very simple, text based adventure game.%0A * %0A * A %22item%22 represents a device that you can be used in the scenery of the game.%0A * %0A * @author Alexandre Boursier & Nolan Potier%0A * @version 2011.10.25%0A */%0A%0Apublic class Item %7B%0A%0A    private String name;%0A    private String description;%0A    %0A    /**%0A     * Create a new Item.%0A     * @param name%0A     * @param description%0A     */%0A    public Item(String name, String description) %7B%0A        this.name = name;%0A        this.description = description;%0A    %7D%0A%0A    /**%0A     * Return a name of the item. %0A     * @return the name%0A     */%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    /**%0A     * Define the name of the item.%0A     * @param name the name to set%0A     */%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    /**%0A     * Return a description of the item.     * %0A     * @return the description%0A     */%0A    public String getDescription() %7B%0A        return description;%0A    %7D%0A%0A    /**%0A     * Define the description of the item.%0A     * @param description the description to set%0A     */%0A    public void setDescription(String description) %7B%0A        this.description = description;%0A    %7D%0A%0A    /**%0A     * Execute the action of this item.%0A     * @param player%0A     * @return%0A     */%0A    public boolean useItem(Player player) %7B%0A%0A        if(this.name.equals(%22Key%22)) %7B%0A            for(Door r : player.getCurrentRoom().getDoors()) %7B%0A                if(r.isLocked()) %7B%0A                    r.setLock(false);%0A                    System.out.println(r.getName() + %22 is open !%22);%0A                    return true;%0A                %7D                                    %0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A%7D%0A

Create Item.java