Exemple #1
0
 public void setDisplayName(String name) {
   displayName = name;
   setInteractiveName(TextParser.stripFormatting(name));
 }
Exemple #2
0
 /**
  * Set desination and display name, but allow the MUD to automatically determine the interactive
  * name. It attempts to strip all ANSI format tags from the display name and use that as the
  * interactive name.
  *
  * @param dest
  * @param displayName
  */
 public Portal(Room dest, String displayName) {
   destination = dest;
   this.displayName = displayName;
   this.interactiveName = TextParser.stripFormatting(displayName);
 }