input
Class MessageDeleteEvent
java.lang.Object
input.ExternalEvent
input.MessageEvent
input.MessageDeleteEvent
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class MessageDeleteEvent
- extends MessageEvent
External event for deleting a message.
- See Also:
- Serialized Form
Constructor Summary |
MessageDeleteEvent(int host,
java.lang.String id,
double time,
boolean drop)
Creates a message delete event |
Method Summary |
void |
processEvent(World world)
Deletes the message |
java.lang.String |
toString()
Returns a String representation of the event |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MessageDeleteEvent
public MessageDeleteEvent(int host,
java.lang.String id,
double time,
boolean drop)
- Creates a message delete event
- Parameters:
host
- Where to delete the messageid
- ID of the messagetime
- Time when the message is deleted
processEvent
public void processEvent(World world)
- Deletes the message
- Overrides:
processEvent
in class ExternalEvent
- Parameters:
world
- World where the actors of the event are
toString
public java.lang.String toString()
- Description copied from class:
ExternalEvent
- Returns a String representation of the event
- Overrides:
toString
in class MessageEvent
- Returns:
- a String representation of the event