rpg.core
Class ChatStream
java.lang.Object
rpg.core.ChatStream
public class ChatStream
- extends java.lang.Object
ChatStream represents the flow of text through the game system. To
get an instance of ChatStream, use GameManager.getChatStream().
ChatStream publishes messages as property changes (for now).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChatStream
public ChatStream()
fireMessage
public void fireMessage(ChatMessage msg)
- Transmits a message to all interested listeners.
parseMessage
public void parseMessage(Identity sender,
ChatMessage source)
- Parses user input and fires a new ChatMessage based on it.
addCommandProcessor
public void addCommandProcessor(ChatCommandProcessor ccp)
removeCommandProcessor
public void removeCommandProcessor(ChatCommandProcessor ccp)
getCommandProcessors
public java.util.List<ChatCommandProcessor> getCommandProcessors()
addChatListener
public void addChatListener(ChatListener listener)
removeChatListener
public void removeChatListener(ChatListener listener)
getChatListeners
public java.util.List<ChatListener> getChatListeners()