|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.core.intermud.packets.Packet
com.planet_ink.coffee_mud.core.intermud.packets.TellPacket
public class TellPacket
This extension of the Packet class handles incoming and
outgoing intermud tells. To use it in a services object,
simply grab the data out of its public members. To use
it to send a tell, set all of its public data members
and call the send() method.
Created: 22 Spetember 1996
Last modified: 29 September 1996
| Field Summary | |
|---|---|
java.lang.String |
message
The actual message being sent. |
java.lang.String |
sender_visible_name
The display name for the person sending the tell. |
| Fields inherited from class com.planet_ink.coffee_mud.core.intermud.packets.Packet |
|---|
CHAN_ADD, CHAN_EMOTE, CHAN_LISTEN, CHAN_MESSAGE, CHAN_REMOVE, CHAN_TARGET, CHAN_WHO_REP, CHAN_WHO_REQ, LOCATE_QUERY, LOCATE_REPLY, sender_mud, sender_name, target_mud, target_name, TELL, type, WHO_REPLY, WHO_REQUEST |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.planet_ink.coffee_mud.core.intermud.packets.Packet |
|---|
convertString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String sender_visible_name
public java.lang.String message
| Constructor Detail |
|---|
public TellPacket()
public TellPacket(java.util.Vector v)
throws InvalidPacketException
v - the I3 mud mode vector containing the incoming tell
InvalidPacketException - thrown if the incoming packet is bad
public 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 sent| Method Detail |
|---|
public void send()
throws InvalidPacketException
send in class PacketInvalidPacketException - thrown if this packet was not properly constructedPacket.send()public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||