Class CommandWords

java.lang.Object
CommandWords

public class CommandWords extends Object
This class is part of the "World of Zuul" application. "World of Zuul" is a very simple, text based adventure game. This class holds an enumeration table of all command words known to the game. It is used to recognise commands as they are typed in.
Version:
2008.03.30 + 2019.09.25
Author:
Michael Kolling and David J. Barnes + D.Bureau
  • Constructor Details

    • CommandWords

      public CommandWords()
  • Method Details

    • isCommand

      public boolean isCommand(String pString)
      Check whether a given String is a valid command word.
      Returns:
      true if a given string is a valid command, false if it isn't.