wyvern.lib.event
Class MessageEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bywyvern.lib.event.MessageEvent
All Implemented Interfaces:
java.io.Serializable

public class MessageEvent
extends java.util.EventObject

Event encapsulating the delivery of a text message to a player.

Version:
1.0, Oct 31, 2003
Author:
Steve Yegge
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageEvent(Commandable recipient, java.lang.String text, byte style)
          Constructs a new MessageEvent
 
Method Summary
 java.lang.String getMessage()
          Returns the text of the message.
 Commandable getReceiver()
          Returns the recipient of the message.
 byte getStyle()
          Returns the TextStyle of the message.
 java.lang.String toString()
          Returns debugging string.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageEvent

public MessageEvent(Commandable recipient,
                    java.lang.String text,
                    byte style)
Constructs a new MessageEvent

Method Detail

getMessage

public java.lang.String getMessage()
Returns the text of the message.


getReceiver

public Commandable getReceiver()
Returns the recipient of the message.


getStyle

public byte getStyle()
Returns the TextStyle of the message.


toString

public java.lang.String toString()
Returns debugging string.