org.jogre.comm
Class CommChatBroadcast
java.lang.Object
|
+--org.jogre.comm.CommChatBroadcast
- All Implemented Interfaces:
- ITransmittable
- Direct Known Subclasses:
- CommChatPrivate, CommChatTable
- public class CommChatBroadcast
- extends Object
- implements ITransmittable
Communication class which is used to broadcast a chat message to all users.
- Version:
- Alpha 0.1
- Author:
- Bob Marks
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIN_TOKENS
protected static final int MIN_TOKENS
usernameFrom
protected String usernameFrom
message
protected String message
CommChatBroadcast
protected CommChatBroadcast()
CommChatBroadcast
public CommChatBroadcast(String usernameFrom,
String message)
- A CommMessage.BroadCast is a ...
- Parameters:
usernameFrom
- message
-
CommChatBroadcast
public CommChatBroadcast(String inString)
throws TransmissionException
- Constructor which creates a CommChatBroadcast object from the flatten ()
method of another CommChatBroadcast object.
- Parameters:
inString
- - Throws:
TransmissionException
-
flatten
public String flatten()
- Transmittable String representation of this object.
- Specified by:
flatten
in interface ITransmittable
- See Also:
ITransmittable.flatten()
getMessage
public String getMessage()
getUsernameFrom
public String getUsernameFrom()