net.antichess.ai
Class ChatEvent
java.lang.Object
|
+--java.util.EventObject
|
+--net.antichess.ai.ChatEvent
- All Implemented Interfaces:
- Serializable
- public final class ChatEvent
- extends EventObject
This is an event fired by a player who wants to send a message.
Its constructor has package-level access for security reasons.
- Author:
- Michael Bolin
- See Also:
- Serialized Form
message
protected String message
- the chat message
timeInMillis
protected long timeInMillis
- the time at which the message was sent
getMessage
public String getMessage()
- Returns:
- returns the message
getTimeSent
public long getTimeSent()
- Returns:
- the time that the message was sent as the number
of milliseconds since January 1, 1970, 00:00:00 GMT
- See Also:
Date
toString
public String toString()
- Overrides:
toString
in class EventObject
- Returns:
- returns the message
Copyright © 2003 antichess.net. All Rights Reserved.