Class EntityMessageEvent

java.lang.Object
java.util.EventObject
de.gurkenlabs.litiengine.entities.EntityMessageEvent
All Implemented Interfaces:
java.io.Serializable

public class EntityMessageEvent
extends java.util.EventObject
This implementation is used for events that contain information about a received message.
See Also:
IEntity.sendMessage(Object, String), Serialized Form
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Method Summary

    Modifier and TypeMethodDescription
    IEntitygetEntity()
    Gets the entity that received the message.
    java.lang.StringgetMessage()
    Gets the message that was received.

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getEntity

      public IEntity getEntity()
      Gets the entity that received the message.
      Returns:
      The entity that received the message.
    • getMessage

      public java.lang.String getMessage()
      Gets the message that was received.
      Returns:
      The message.