@@ -0,0 +1,901 @@
+ %0A%0A/**%0A * UseCommand Class%0A * %0A * @author Alexandre Boursier and Nolan Potier%0A * @version 2011.10.24%0A */%0Apublic class UseCommand extends Command%0A%7B%0A    /**%0A     * Constructor for objects of class GoCommand%0A     */%0A    public UseCommand() %7B%7D%0A%0A    /** %0A     * Try to take an item if present into the room%0A     * We have to be in the good room%0A     * Returns always 'false'.%0A     */%0A    @Override%0A    public boolean execute(Player player)%0A    %7B%0A        if (!hasSecondWord()) %7B%0A            System.out.println(%22use what?%22);%0A        %7D %0A        else if (player.getItems().get(getSecondWord().toLowerCase()) == null)%7B%0A            System.out.println(%22There is nothing to use like that !%22);%0A        %7D%0A        else if (!player.getItems().get(getSecondWord().toLowerCase()).useItem(player)) %7B%0A            System.out.println(%22There is nothing to use there !%22);              %0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

Create UseCommand.java