|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lazywizard.lazylib.campaign.MessageUtils
public class MessageUtils
Allows formatted, multi-line, word-wrapped sector messages
Field Summary | |
---|---|
static int |
LINE_LENGTH
How long a line can be before being split by showMessage(java.lang.String) |
Method Summary | |
---|---|
static void |
showMessage(java.lang.String message)
Formats and word-wraps the supplied text, then outputs it to the player. |
static void |
showMessage(java.lang.String preamble,
java.lang.String message,
boolean indent)
Formats and word-wraps the supplied text, then outputs it to the player. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LINE_LENGTH
showMessage(java.lang.String)
Method Detail |
---|
public static void showMessage(java.lang.String preamble, java.lang.String message, boolean indent)
preamble
- The header for this message, won't be indented.message
- The main body of text.indent
- Whether to indent each line of the main body.public static void showMessage(java.lang.String message)
message
- The message to output.
|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |