@@ -0,0 +1,1180 @@
+ %0A%0A/**%0A * TakeCommand Class%0A * %0A * @author Alexandre Boursier and Nolan Potier%0A * @version 2011.10.24%0A */%0Apublic class TakeCommand extends Command%0A%7B%0A    /**%0A     * Constructor for objects of class GoCommand%0A     */%0A    public TakeCommand() %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(player.getCurrentRoom().getItem() == null) %7B%0A            System.out.println(%22There is nothing to take there !%22);%0A        %7D%0A        else if (!hasSecondWord()) %7B%0A            System.out.println(%22take what?%22);%0A        %7D %0A        else if (! getSecondWord().equals(player.getCurrentRoom().getItem().getName().toLowerCase()))%7B%0A            System.out.println(%22There is nothing like that to take !%22);%0A        %7D%0A        else%0A        %7B%0A            System.out.println(%22You've just found %22 + player.getCurrentRoom().getItem().getName()  + %22 ! :) %22);%0A            System.out.println(player.getCurrentRoom().getItem().getDescription());%0A%0A            player.addItem(player.getCurrentRoom().takeItem());%0A        %7D%0A        return false;%0A    %7D%0A%7D%0A

Create TakeCommand.java