/** * Display a single line of the help system * TODO see displayHelp() * * @param cmd * @param desc */ displayHelpLine(cmd, desc) { output.insertStyledString(" ", STYLE_REGULAR); output.insertStyledString(cmd, STYLE_BOLD); output.insertStyledString(" -> ", STYLE_REGULAR); output.insertStyledString(desc, STYLE_ITALIC); output.insertLineBreak(); } displayHelp() { game.output.insertStyledString(gameTitle, STYLE_BOLD_LARGE); game.output.insertLineBreak(); game.output.insertLineBreak(); game.output.insertString("Here are some of the following commands that can be used in this adventure:"); game.output.insertLineBreak(); displayHelpLine("H, HELP", "This message"); displayHelpLine("N, S, E, W, NW, NE, SW, SE", "Move in the indicated direction"); displayHelpLine("I, INVENTORY", "Display the objects you are carrying"); displayHelpLine("TAKE and DROP ", "Take an item or drop an item"); displayHelpLine("L, LOOK", "Repeat the room's description"); displayHelpLine("X , EXAMINE ", "Examine an object"); displayHelpLine("Z", "Cause a turn to pass without doing anything"); displayHelpLine("EXITS", "Display all the exits out of the room"); displayHelpLine("CONTENTS", "Display all objects in the room"); game.output.insertLineBreak(); game.output.insertString("The following are some commands for manipulating the game or interface"); displayHelpLine("Q, QUIT", "Quit the game"); displayHelpLine("MODE STATUS", "Toggle the presence of the status bar"); displayHelpLine("MODE TURNS", "Toggle the presence of the turns in the status bar"); displayHelpLine("MODE SHOWROOM", "Toggle the presence of the room title in the status bar"); displayHelpLine("OPTION, OPT