Class Command
java.lang.Object
Command
Classe Command - une commande du jeu d'aventure Zuul.
- Author:
- Nathan DAMART-MOHN
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAllows to access the first command wordAllows to access the second command wordbooleanIndicates if a second word in the command existsbooleanIdicates if the command is in the list of known commands
- 
Constructor Details- 
CommandNatural constructor for the class Command- Parameters:
- pCommandWord- Indicates the first word of the input command
- pSecondWord- Indicates the second word of the input command
 
 
- 
- 
Method Details- 
getCommandWordAllows to access the first command word- Returns:
- A string containing the first command word
 
- 
getSecondWordAllows to access the second command word- Returns:
- A string containing the second command word
 
- 
hasSecondWordpublic boolean hasSecondWord()Indicates if a second word in the command exists- Returns:
- A boolean indicating if a second word exists
 
- 
isUnknownpublic boolean isUnknown()Idicates if the command is in the list of known commands- Returns:
- A boolean indicating if the command is known or not
 
 
-