@@ -0,0 +1,1434 @@
+ %0A%0Aimport java.util.HashMap;%0A%0A/**%0A * This class is part of the %22NolsPotLex%22 application. %22NolsPotLex%22 is a%0A * very simple, text based adventure game.%0A * %0A * This class holds an enumeration of all command words known to the game. It is%0A * used to recognise commands as they are typed in.%0A * %0A * @author Michael Kolling and David J. Barnes and aAlexandre Boursier and Nolan Potier%0A * @version 2011.10.28%0A */%0A%0Apublic class CommandWords %7B%0A    // A mapping between a command word and the CommandWord%0A    // associated with it.%0A    private HashMap%3CString, Command%3E commands;%0A%0A    /**%0A     * Constructor - initialise the command words.%0A     */%0A    public CommandWords()%0A    %7B%0A        commands = new HashMap%3CString, Command%3E();%0A        commands.put(%22go%22, new GoCommand());%0A        commands.put(%22help%22, new HelpCommand(this));%0A        commands.put(%22quit%22, new QuitCommand());%0A        commands.put(%22take%22, new TakeCommand());%0A        commands.put(%22use%22, new UseCommand());%0A    %7D%0A%0A    /**%0A     * Given a command word, find and return the matching command object.%0A     * Return null if there is no command with the given name%0A     */%0A    public Command get(String word)%0A    %7B%0A        return commands.get(word);%0A    %7D%0A%0A    /**%0A     * Print all valid commands %0A     */%0A    public void showAll() %0A    %7B%0A        for (Object element : commands.keySet()) %7B%0A            System.out.print(element + %22 - %22);%0A        %7D%0A        System.out.println();%0A    %7D%0A%7D%0A

Create CommandWords.java