001/** 
002 * This class is part of the "Pere-noel" application. 
003 * "Pere Noel" is a very simple, text based adventure game.
004 * 
005 * 
006 * Representations for all the valid command words for the game.
007 * 
008 * @author  Célia PRIOL & Benoît CHAUVEAU
009 */
010public enum CommandWord
011{
012    // A value for each command word, plus one for unrecognised
013    // commands.
014  
015      GO ("aller"),INVENTAIRE("inventaire"), QUIT("quitter"), HELP("aide"),  UNKNOWN("?"), LOOK("regarder"), BACK("retour"), EAT("manger"), TAKE("prendre"), DROP("déposer"),USE ("utiliser"), LOAD("charger"), TEST ("tester"); 
016    
017     // The command string.
018    private String commandString;
019    
020    /**
021     * Initialise with the corresponding command word.
022     * @param commandWord The command string.
023     */
024    CommandWord(String commandString)
025    {
026        this.commandString = commandString;
027    }
028    
029    /**
030     * @return The command word as a string.
031     */
032    public String toString()
033    {
034        return commandString;
035    }
036}