Class Help
Object
Help
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()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.inthashCode()voidsetCommand(String command) voidsetContents(String contents) voidsetExample1(String example1) voidsetExample1a(String example1a) voidsetExample1b(String example1b) voidsetExample2(String example2) voidsetExample2a(String example2a) voidsetExample2b(String example2b) voidsetExample2c(String example2c) voidsetSeealso(String seealso) voidsetSynopsis(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:DisplayInterfaceThe title as visible on the screen.- Specified by:
getMainTitlein interfaceDisplayInterface- Returns:
-
getImage
Description copied from interface:DisplayInterfaceReturns an url pointing to an image.- Specified by:
getImagein interfaceDisplayInterface- Returns:
-
getBody
Description copied from interface:DisplayInterfaceThe 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:
getBodyin interfaceDisplayInterface- Returns:
-
toString
-