Class Help
Object
Help
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBody()
The body to be displayed on the screen.The command for which help is requested and found.The explanation, description, whatever-you-may-call-it.An example of the way the command is executed.Output of the example visible to you.Output of the example visible to others.An example of the way the command is executed to someone else.What the players sees.What the target notices.What a third party sees.getImage()
Returns an url pointing to an image.The title as visible on the screen.Reference to other commands.For display purposes on the website.The way the command syntax works.int
hashCode()
void
setCommand
(String command) void
setContents
(String contents) void
setExample1
(String example1) void
setExample1a
(String example1a) void
setExample1b
(String example1b) void
setExample2
(String example2) void
setExample2a
(String example2a) void
setExample2b
(String example2b) void
setExample2c
(String example2c) void
setSeealso
(String seealso) void
setSynopsis
(String synopsis) toString()
-
Constructor Details
-
Help
public Help() -
Help
-
Help
-
-
Method Details
-
getCommand
The command for which help is requested and found.- Returns:
- String containing the command.
-
setCommand
-
getContents
The explanation, description, whatever-you-may-call-it.- Returns:
- 'the help' as a String
-
setContents
-
getSynopsis
The way the command syntax works.- Returns:
- String, for example "swoon [to <person>]".
-
setSynopsis
-
getSeealso
-
setSeealso
-
getBodyForWebpage
-
getSeealsoForWebpage
For display purposes on the website.- Returns:
- other commands, but linked.
-
getExample1
An example of the way the command is executed.- Returns:
- For example "unwield pick from bothhands".
-
setExample1
-
getExample1a
Output of the example visible to you.- Returns:
- For example "You open an old, iron chest.".
-
setExample1a
-
getExample1b
Output of the example visible to others.- Returns:
- For example "Hotblack locks an old, iron chest with an old iron key."
-
setExample1b
-
getExample2
An example of the way the command is executed to someone else.- Returns:
- For example "tell to marvin Hey!".
-
setExample2
-
getExample2a
-
setExample2a
-
getExample2b
What the target notices.- Returns:
- For example "Hotblack tells you : Hey!".
-
setExample2b
-
getExample2c
What a third party sees.- Returns:
- For example "Hotblack says [to Marvin]: Hey!".
-
setExample2c
-
hashCode
-
equals
-
getMainTitle
Description copied from interface:DisplayInterface
The title as visible on the screen.- Specified by:
getMainTitle
in interfaceDisplayInterface
- Returns:
-
getImage
Description copied from interface:DisplayInterface
Returns an url pointing to an image.- Specified by:
getImage
in interfaceDisplayInterface
- Returns:
-
getBody
Description copied from interface:DisplayInterface
The body to be displayed on the screen. In general the first letter of the body is converted to an image on the client side.- Specified by:
getBody
in interfaceDisplayInterface
- Returns:
-
toString
-