public class TellPacket extends Packet
Modifier and Type | Field | Description |
---|---|---|
java.lang.String |
message |
The actual message being sent.
|
java.lang.String |
sender_visible_name |
The display name for the person sending the tell.
|
CHAN_ADD, CHAN_EMOTE, CHAN_LISTEN, CHAN_MESSAGE, CHAN_REMOVE, CHAN_TARGET, CHAN_USER_REP, CHAN_USER_REQ, CHAN_WHO_REP, CHAN_WHO_REQ, ERROR_PACKET, FINGER_REPLY, FINGER_REQUEST, LOCATE_QUERY, LOCATE_REPLY, MAUTH_REPLY, MAUTH_REQUEST, PING_PACKET, sender_mud, sender_name, SHUTDOWN, target_mud, target_name, TELL, type, UCACHE_UPDATE, WHO_REPLY, WHO_REQUEST
Constructor | Description |
---|---|
TellPacket() |
|
TellPacket(Interactive u,
java.lang.String who,
java.lang.String mud,
java.lang.String msg) |
Constructs an outgoing tell.
|
TellPacket(java.util.Vector<?> v) |
Constructs a tell package based on an I3 mud mode vector.
|
Modifier and Type | Method | Description |
---|---|---|
void |
send() |
Sends a properly constructed outgoing tell to its target.
|
java.lang.String |
toString() |
This method is used by the I3 system to turn the packet
into a mud mode string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
convertString
public java.lang.String sender_visible_name
public java.lang.String message
public TellPacket()
public TellPacket(java.util.Vector<?> v) throws InvalidPacketException
v
- the I3 mud mode vector containing the incoming tellInvalidPacketException
- thrown if the incoming packet is badpublic TellPacket(Interactive u, java.lang.String who, java.lang.String mud, java.lang.String msg)
u
- the interactive sending the tellwho
- the person whom they are sending the tell tomud
- the mud the target is onmsg
- the message being sentpublic void send() throws InvalidPacketException
send
in class Packet
InvalidPacketException
- thrown if this packet was not properly constructedPacket.send()
public java.lang.String toString()
toString
in class java.lang.Object