rpg.core
Class ChatStream

java.lang.Object
  extended by 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).


Constructor Summary
ChatStream()
           
 
Method Summary
 void addChatListener(ChatListener listener)
           
 void addCommandProcessor(ChatCommandProcessor ccp)
           
 void fireMessage(ChatMessage msg)
          Transmits a message to all interested listeners.
 java.util.List<ChatListener> getChatListeners()
           
 java.util.List<ChatCommandProcessor> getCommandProcessors()
           
 void parseMessage(Identity sender, ChatMessage source)
          Parses user input and fires a new ChatMessage based on it.
 void removeChatListener(ChatListener listener)
           
 void removeCommandProcessor(ChatCommandProcessor ccp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatStream

public ChatStream()
Method Detail

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()