wyvern.kernel.monsters
Class Talker.Reply

java.lang.Object
  extended bywyvern.kernel.monsters.Talker.Reply
Enclosing class:
Talker

public class Talker.Reply
extends java.lang.Object

Encapsulates a reply and any attributes it might have.


Field Summary
protected  boolean _nosay
           
protected  java.lang.String _reply
           
 
Constructor Summary
Talker.Reply(java.lang.String s, boolean nosay)
          Creates a new reply.
 
Method Summary
 java.lang.String getReply()
          Returns the reply, with "NPC-name says: " prepended if "nosay" isn't set.
 java.lang.String getReplyString()
          Returns the undecorated reply string (without the "NPC says:" prefix, even if nosay isn't set).
 boolean isNosay()
          Returns true if "nosay" is set for this reply, meaning the NPC's name and "say: " won't be prepended to the string.
 void setNosay(boolean nosay)
          Sets this reply as no-say or not.
 void setReplyString(java.lang.String reply)
          Sets the reply string for this Reply.
 java.lang.String toString()
          Returns a debugging string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_reply

protected java.lang.String _reply

_nosay

protected boolean _nosay
Constructor Detail

Talker.Reply

public Talker.Reply(java.lang.String s,
                    boolean nosay)
Creates a new reply.

Parameters:
s - the reply string
nosay - true to make it like an emote; the NPC/monster doesn't "say" the reply; it just gets printed as-is.
Method Detail

isNosay

public boolean isNosay()
Returns true if "nosay" is set for this reply, meaning the NPC's name and "say: " won't be prepended to the string.


setNosay

public void setNosay(boolean nosay)
Sets this reply as no-say or not.


getReply

public java.lang.String getReply()
Returns the reply, with "NPC-name says: " prepended if "nosay" isn't set.


getReplyString

public java.lang.String getReplyString()
Returns the undecorated reply string (without the "NPC says:" prefix, even if nosay isn't set).


setReplyString

public void setReplyString(java.lang.String reply)
Sets the reply string for this Reply.


toString

public java.lang.String toString()
Returns a debugging string.