|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.monsters.Talker.Reply
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 |
protected java.lang.String _reply
protected boolean _nosay
Constructor Detail |
public Talker.Reply(java.lang.String s, boolean nosay)
s
- the reply stringnosay
- true to make it like an emote; the
NPC/monster doesn't "say" the reply; it just gets
printed as-is.Method Detail |
public boolean isNosay()
public void setNosay(boolean nosay)
public java.lang.String getReply()
public java.lang.String getReplyString()
public void setReplyString(java.lang.String reply)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |