Class TimedEvent

  • All Implemented Interfaces:
    java.lang.Cloneable

    public abstract class TimedEvent
    extends java.lang.Object
    implements java.lang.Cloneable
    Created by Randy on 05/23/16.
    • Constructor Summary

      Constructors 
      Constructor Description
      TimedEvent​(int ticks)
      Instantiates a new Timed event.
      TimedEvent​(int ticks, java.lang.Object attachedObject)
      Instantiates a new Timed event.
    • Method Summary

      Modifier and Type Method Description
      TimedEvent clone()  
      java.lang.Object getAttachedObject()
      Get the object this TimedEvent is attached to
      int getTicks()
      Get the ticks
      abstract void run()
      Run.
      void setAttachedObject​(java.lang.Object attachedObject)
      Set the attached object
      void setTicks​(int ticks)
      Set the ticks
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimedEvent

        public TimedEvent​(int ticks,
                          java.lang.Object attachedObject)
        Instantiates a new Timed event.
        Parameters:
        ticks - the ticks
        attachedObject - the attached object
      • TimedEvent

        public TimedEvent​(int ticks)
        Instantiates a new Timed event.
        Parameters:
        ticks - the ticks
    • Method Detail

      • getAttachedObject

        public java.lang.Object getAttachedObject()
        Get the object this TimedEvent is attached to
        Returns:
        attached object
      • setAttachedObject

        public void setAttachedObject​(java.lang.Object attachedObject)
        Set the attached object
        Parameters:
        attachedObject - the attached object
      • getTicks

        public int getTicks()
        Get the ticks
        Returns:
        ticks
      • setTicks

        public void setTicks​(int ticks)
        Set the ticks
        Parameters:
        ticks - the ticks
      • run

        public abstract void run()
        Run.