-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHelpCommand.java
36 lines (32 loc) · 917 Bytes
/
HelpCommand.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* HelpCommand Class
*
* @author Alexandre Boursier and Nolan Potier
* @version 2011.10.24
*/
public class HelpCommand extends Command
{
private CommandWords commandWords;
/**
* Constructor for objects of class HelpCommand
*/
public HelpCommand(CommandWords words)
{
commandWords = words;
}
/**
* Print out some help information. Here we print some stupid,
* cryptic message and a list of the command words.
* Returns always false.
*/
@Override
public boolean execute(Player player)
{
System.out.println("You are in the world of ZUUL no way to get out instead of finding the EXIT DOOR ! MUHAHAHA");
System.out.println(player.getCurrentRoom().getLongDescription());
System.out.println();
System.out.println("Your command words are:");
commandWords.showAll();
return false;
}
}