org.haphazard.XML
Class MessageHandler

java.lang.Object
  extended byorg.haphazard.XML.MessageHandler
Direct Known Subclasses:
Action, GlobalWorld

public abstract class MessageHandler
extends java.lang.Object


Field Summary
protected  java.util.Vector mMessageBuffer
           
 
Constructor Summary
MessageHandler()
           
 
Method Summary
 void addMessage(Message message)
          Adds a message to this action
 Message getNextMessage()
          Gets the next message in the message buffer
 boolean hasMessage()
          Checks if this action has waiting messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mMessageBuffer

protected java.util.Vector mMessageBuffer
Constructor Detail

MessageHandler

public MessageHandler()
Method Detail

addMessage

public void addMessage(Message message)
Adds a message to this action

Parameters:
message - The message to add

hasMessage

public boolean hasMessage()
Checks if this action has waiting messages

Returns:
True if there are waiting messages

getNextMessage

public Message getNextMessage()
Gets the next message in the message buffer

Returns:
A message to this action