Class GraphicChanged

  • public class GraphicChanged
    extends java.lang.Object
    An event where the graphic of an Actor has changed.

    The graphic the player has changed to can be obtained using Actor.getGraphic().

    Examples of when this event may trigger include:

    • Casting a magic spell
    • Using a fairy ring
    • Breaking a teleport tab
    See Also:
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      Actor getActor()
      The actor that has had their graphic changed.
      int hashCode()  
      void setActor​(Actor actor)
      The actor that has had their graphic changed.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GraphicChanged

        public GraphicChanged()
    • Method Detail

      • getActor

        public Actor getActor()
        The actor that has had their graphic changed.
      • setActor

        public void setActor​(Actor actor)
        The actor that has had their graphic changed.
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object