Class EventListeners.Entry<T extends Event>

java.lang.Object
com.prineside.tdi2.events.EventListeners.Entry<T>
All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable
Enclosing class:
EventListeners<T extends Event>

public static final class EventListeners.Entry<T extends Event> extends Object implements com.badlogic.gdx.utils.Pool.Poolable, com.esotericsoftware.kryo.KryoSerializable
  • Field Details

  • Constructor Details

    • Entry

      public Entry()
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • getMetaData

      public EventListeners.Entry.EntryMetaData<T> getMetaData()
    • setName

      public EventListeners.Entry<T> setName(String name)
      Give a name for the listener It is advised to set a name manually only when the listener does not-so-obvious job or if there are multiple listeners for the same event in a single class. By default, listener's class name will be used as a name. Example of a good name: [Class it is used in] - [purpose]
    • getName

      public String getName()
    • setDescription

      public EventListeners.Entry<T> setDescription(String description)
    • getDescription

      public String getDescription()
    • getPriority

      public int getPriority()
    • getListener

      public Listener<T> getListener()
    • setup

      public EventListeners.Entry<T> setup(Listener<T> listener, int priority, EventListeners<T> listenerGroup, int flags)
    • reset

      public void reset()
      Description copied from interface: com.badlogic.gdx.utils.Pool.Poolable
      Resets the object for reuse. Object references should be nulled and fields may be set to default values.
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable
    • remove

      public void remove()
    • isStateAffecting

      public boolean isStateAffecting()
    • isAutoPriority

      public boolean isAutoPriority()
    • isPersistent

      public boolean isPersistent()
    • setPersistent

      public EventListeners.Entry<T> setPersistent()
    • setPersistent

      public EventListeners.Entry<T> setPersistent(boolean persistent)
    • toString

      public String toString()
      Overrides:
      toString in class Object